Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #21 from wshafer/psr11
Browse files Browse the repository at this point in the history
Replace deprecated container-interop with PSR-11
  • Loading branch information
asgrim authored Jun 30, 2017
2 parents be47616 + 77320f6 commit 6dd456c
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"require": {
"php": "^5.5|^7.0",
"doctrine/orm": "^2.5",
"container-interop/container-interop": "^1.1",
"psr/container": "^1.0.0",
"doctrine/dbal": "^2.5",
"doctrine/common": "^2.6"
},
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace ContainerInteropDoctrine;

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

abstract class AbstractFactory
{
Expand Down
2 changes: 1 addition & 1 deletion src/CacheFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use Doctrine\Common\Cache\XcacheCache;
use Doctrine\Common\Cache\ZendDataCache;
use Doctrine\Common\Proxy\Exception\OutOfBoundsException;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

/**
* @method Cache __invoke(ContainerInterface $container)
Expand Down
2 changes: 1 addition & 1 deletion src/ConfigurationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Doctrine\ORM\Cache\DefaultCacheFactory;
use Doctrine\ORM\Cache\RegionsConfiguration;
use Doctrine\ORM\Configuration;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

/**
* @method Configuration __invoke(ContainerInterface $container)
Expand Down
2 changes: 1 addition & 1 deletion src/ConnectionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Driver\PDOMySql\Driver as PdoMysqlDriver;
use Doctrine\DBAL\DriverManager;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

/**
* @method Connection __invoke(ContainerInterface $container)
Expand Down
2 changes: 1 addition & 1 deletion src/DriverFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver;
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain;
use Doctrine\Common\Proxy\Exception\OutOfBoundsException;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

/**
* @method MappingDriver __invoke(ContainerInterface $container)
Expand Down
2 changes: 1 addition & 1 deletion src/EntityManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

use Doctrine\DBAL\Types\Type;
use Doctrine\ORM\EntityManager;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

/**
* @method EntityManager __invoke(ContainerInterface $container)
Expand Down
2 changes: 1 addition & 1 deletion src/EventManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use ContainerInteropDoctrine\Exception\DomainException;
use Doctrine\Common\EventManager;
use Doctrine\Common\EventSubscriber;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

/**
* @method EventManager __invoke(ContainerInterface $container)
Expand Down
4 changes: 2 additions & 2 deletions test/AbstractFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

use ContainerInteropDoctrine\Exception\DomainException;
use ContainerInteropDoctrineTest\TestAsset\StubFactory;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use PHPUnit_Framework_TestCase;

class AbstractFactoryTest extends PHPUnit_Framework_TestCase
Expand Down Expand Up @@ -40,7 +40,7 @@ public function testStaticCallWithoutContainer()
{
$this->setExpectedException(
DomainException::class,
'The first argument must be of type Interop\Container\ContainerInterface'
'The first argument must be of type Psr\Container\ContainerInterface'
);
StubFactory::orm_other();
}
Expand Down
2 changes: 1 addition & 1 deletion test/CacheFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use ContainerInteropDoctrine\CacheFactory;
use Doctrine\Common\Cache\ChainCache;
use Doctrine\Common\Cache\FilesystemCache;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use PHPUnit_Framework_TestCase;

/**
Expand Down
2 changes: 1 addition & 1 deletion test/ConnectionFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Doctrine\DBAL\Exception\ConnectionException;
use Doctrine\DBAL\Types\Type;
use Doctrine\ORM\Configuration;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use PHPUnit_Framework_TestCase;
use Prophecy\Prophecy\ObjectProphecy;

Expand Down
2 changes: 1 addition & 1 deletion test/DriverFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Doctrine\ORM\Mapping\Driver;
use OutOfBoundsException;
use ContainerInteropDoctrine\DriverFactory;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use PHPUnit_Framework_TestCase as TestCase;

class DriverFactoryTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/EntityManagerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain;
use Doctrine\DBAL\Connection;
use Doctrine\ORM\Configuration;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use PHPUnit_Framework_TestCase;

class EntityManagerFactoryTest extends PHPUnit_Framework_TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/EventManagerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use ContainerInteropDoctrine\EventManagerFactory;
use ContainerInteropDoctrine\Exception\DomainException;
use ContainerInteropDoctrineTest\TestAsset\StubEventSubscriber;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;
use PHPUnit_Framework_TestCase;
use Prophecy\Prophecy\ObjectProphecy;
use stdClass;
Expand Down
2 changes: 1 addition & 1 deletion test/TestAsset/StubFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace ContainerInteropDoctrineTest\TestAsset;

use ContainerInteropDoctrine\AbstractFactory;
use Interop\Container\ContainerInterface;
use Psr\Container\ContainerInterface;

class StubFactory extends AbstractFactory
{
Expand Down

0 comments on commit 6dd456c

Please sign in to comment.