Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop container-interop/container-interop #729

Merged
merged 3 commits into from
Dec 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"require": {
"php": "^7.4 || ~8.0.0 || ~8.1.0",
"ext-json": "*",
"container-interop/container-interop": "^1.2.0",
"doctrine/dbal": "^2.13.7 || ^3.3.2",
"doctrine/doctrine-laminas-hydrator": "^3.0.0",
"doctrine/doctrine-module": "^5.2.0",
Expand All @@ -62,8 +61,9 @@
"laminas/laminas-modulemanager": "^2.11.0",
"laminas/laminas-mvc": "^3.3.2",
"laminas/laminas-paginator": "^2.12.2",
"laminas/laminas-servicemanager": "^3.10.0",
"laminas/laminas-servicemanager": "^3.17.0",
"laminas/laminas-stdlib": "^3.7.1",
"psr/container": "^1.1.2",
"symfony/console": "^5.4.3 || ^6.0.3"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion docs/en/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Db\\Cache\\RedisFactory

namespace Db\Cache;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use Redis;

class RedisFactory
Expand Down
3 changes: 0 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ parameters:
-
message: '#Return type .* of method DoctrineORMModule\\Yuml\\YumlController::indexAction\(\)#'
path: src/Yuml/YumlController.php
-
message: '#Method DoctrineORMModule\\CliConfigurator::getHelpers\(\) should return#'
path: src/CliConfigurator.php
-
message: '#Parameter \#1 .* of method DoctrineORMModule\\Options\\Configuration.* stdClass given#'
path: tests/Options/ConfigurationOptionsTest.php
Expand Down
2 changes: 1 addition & 1 deletion src/CliConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
use Doctrine\Migrations\Tools\Console\Command\VersionCommand;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
use Interop\Container\ContainerInterface;
use Laminas\Stdlib\ArrayUtils;
use Psr\Container\ContainerInterface;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Helper\Helper;
use Symfony\Component\Console\Helper\QuestionHelper;
Expand Down
4 changes: 3 additions & 1 deletion src/Paginator/Adapter/DoctrinePaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* Paginator adapter for the Laminas\Paginator component
*
* @psalm-template T of object
* @psalm-template TKey of int
* @psalm-template TValue
*/
class DoctrinePaginator implements AdapterInterface, JsonSerializable
{
Expand Down Expand Up @@ -50,7 +52,7 @@ public function getPaginator(): Paginator
/**
* {@inheritDoc}
*
* @psalm-return ArrayIterator<array-key,T>
* @psalm-return ArrayIterator<TKey, TValue>
*/
public function getItems($offset, $itemCountPerPage)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Service/CliConfiguratorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace DoctrineORMModule\Service;

use DoctrineORMModule\CliConfigurator;
use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;

final class CliConfiguratorFactory implements FactoryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ConfigurationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
use Doctrine\ORM\Mapping\EntityListenerResolver;
use DoctrineORMModule\Options\Configuration as DoctrineORMModuleConfiguration;
use DoctrineORMModule\Service\DBALConfigurationFactory as DoctrineConfigurationFactory;
use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Exception\InvalidArgumentException;
use Psr\Container\ContainerInterface;

use function is_string;
use function method_exists;
Expand Down
2 changes: 1 addition & 1 deletion src/Service/DBALConfigurationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use Doctrine\DBAL\Driver\Middleware;
use Doctrine\DBAL\Types\Type;
use DoctrineORMModule\Options\Configuration as DoctrineORMModuleConfiguration;
use Interop\Container\ContainerInterface;
use InvalidArgumentException;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;
use RuntimeException;
use UnexpectedValueException;

Expand Down
2 changes: 1 addition & 1 deletion src/Service/DBALConnectionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
use Doctrine\DBAL\Types\Type;
use DoctrineModule\Service\AbstractFactory;
use DoctrineORMModule\Options\DBALConnection;
use Interop\Container\ContainerInterface;
use PDO;
use Psr\Container\ContainerInterface;

use function array_key_exists;
use function array_merge;
Expand Down
2 changes: 1 addition & 1 deletion src/Service/DoctrineObjectHydratorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace DoctrineORMModule\Service;

use Doctrine\Laminas\Hydrator\DoctrineObject;
use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;

final class DoctrineObjectHydratorFactory implements FactoryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Service/EntityManagerAliasCompatFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace DoctrineORMModule\Service;

use Doctrine\ORM\EntityManager;
use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;

/**
* Factory that provides the `Doctrine\ORM\EntityManager` alias for `doctrine.entitymanager.orm_default`
Expand Down
2 changes: 1 addition & 1 deletion src/Service/EntityManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Doctrine\ORM\EntityManager;
use DoctrineModule\Service\AbstractFactory;
use DoctrineORMModule\Options\EntityManager as DoctrineORMModuleEntityManager;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

use function assert;

Expand Down
2 changes: 1 addition & 1 deletion src/Service/EntityResolverFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Doctrine\ORM\Tools\ResolveTargetEntityListener;
use DoctrineModule\Service\AbstractFactory;
use DoctrineORMModule\Options\EntityResolver;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

use function assert;

Expand Down
2 changes: 1 addition & 1 deletion src/Service/MappingCollectorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use BadMethodCallException;
use DoctrineModule\Service\AbstractFactory;
use DoctrineORMModule\Collector\MappingCollector;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

/**
* Service factory responsible for instantiating {@see \DoctrineORMModule\Collector\MappingCollector}
Expand Down
2 changes: 1 addition & 1 deletion src/Service/MigrationsCommandFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use Doctrine\Migrations\Configuration\Migration\ConfigurationArray;
use Doctrine\Migrations\DependencyFactory;
use Doctrine\Migrations\Tools\Console\Command\DoctrineCommand;
use Interop\Container\ContainerInterface;
use InvalidArgumentException;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;
use RuntimeException;
use Symfony\Component\Console\Input\ArgvInput;

Expand Down
2 changes: 1 addition & 1 deletion src/Service/ObjectMultiCheckboxFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use Doctrine\ORM\EntityManager;
use DoctrineModule\Form\Element\ObjectMultiCheckbox;
use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;

/**
* Factory for {@see ObjectMultiCheckbox}
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ObjectRadioFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use Doctrine\ORM\EntityManager;
use DoctrineModule\Form\Element\ObjectRadio;
use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;

/**
* Factory for {@see ObjectRadio}
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ObjectSelectFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use Doctrine\ORM\EntityManager;
use DoctrineModule\Form\Element\ObjectSelect;
use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;

/**
* Factory for {@see ObjectSelect}
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ReservedWordsCommandFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use Doctrine\DBAL\Tools\Console\Command\ReservedWordsCommand;
use Doctrine\DBAL\Tools\Console\ConnectionProvider\SingleConnectionProvider;
use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;

final class ReservedWordsCommandFactory implements FactoryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Service/RunSqlCommandFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use Doctrine\DBAL\Tools\Console\Command\RunSqlCommand;
use Doctrine\DBAL\Tools\Console\ConnectionProvider\SingleConnectionProvider;
use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;

final class RunSqlCommandFactory implements FactoryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Service/SQLLoggerCollectorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
use Doctrine\DBAL\Logging\LoggerChain;
use DoctrineORMModule\Collector\SQLLoggerCollector;
use DoctrineORMModule\Options\SQLLoggerCollectorOptions;
use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;
use RuntimeException;

use function sprintf;
Expand Down
2 changes: 1 addition & 1 deletion src/Yuml/YumlControllerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace DoctrineORMModule\Yuml;

use Interop\Container\ContainerInterface;
use Laminas\Http\Client;
use Laminas\ServiceManager\Exception\ServiceNotFoundException;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;

use function sprintf;

Expand Down