Skip to content

Commit

Permalink
Updated namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
vasildakov committed May 4, 2016
1 parent d49bd06 commit a9b0e8a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions config/dependencies.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
return [
'dependencies' => [
'factories' => [
Doctrine\ORM\EntityManager::class => VasilDakov\Container\DoctrineFactory::class,
Doctrine\Common\Cache\Cache::class => VasilDakov\Container\DoctrineRedisCacheFactory::class,
Doctrine\ORM\EntityManager::class => VasilDakov\Doctrine\Container\DoctrineFactory::class,
Doctrine\Common\Cache\Cache::class => VasilDakov\Doctrine\Container\DoctrineRedisCacheFactory::class,
]
],
];
2 changes: 1 addition & 1 deletion src/Container/DoctrineFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __invoke(ContainerInterface $container)
$doctrine->setMetadataDriverImpl($driver);

// Cache
$cache = $container->get(Cache::class);
$cache = $container->get(\Doctrine\Common\Cache\Cache::class);
$doctrine->setQueryCacheImpl($cache);
$doctrine->setResultCacheImpl($cache);
$doctrine->setMetadataCacheImpl($cache);
Expand Down
3 changes: 0 additions & 3 deletions test/Container/DoctrineFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ public function testFactory()

$container->setService('config', $config);

//var_dump($container->get(EntityManager::class)); exit();
//var_dump($container->get(EntityManager::class)); exit();

$factory = new DoctrineFactory();
$this->assertInstanceOf(DoctrineFactory::class, $factory);

Expand Down
4 changes: 2 additions & 2 deletions test/config/dependencies.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
return [
'dependencies' => [
'factories' => [
Doctrine\ORM\EntityManager::class => VasilDakov\Container\DoctrineFactory::class,
Doctrine\Common\Cache\Cache::class => VasilDakov\Container\DoctrineRedisCacheFactory::class,
Doctrine\ORM\EntityManager::class => VasilDakov\Doctrine\Container\DoctrineFactory::class,
Doctrine\Common\Cache\Cache::class => VasilDakov\Doctrine\Container\DoctrineRedisCacheFactory::class,
]
],
];

0 comments on commit a9b0e8a

Please sign in to comment.