Skip to content

Commit

Permalink
Make sure PHP-DI checks for right dependency (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspray authored May 8, 2022
1 parent 8b62ddc commit 38d43d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ContainerFactory/PhpDiContainerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Cspray\AnnotatedContainer\ContainerFactory;

use Auryn\Injector;
use DI\Container;

// @codeCoverageIgnoreStart
if (!class_exists(Injector::class)) {
if (!class_exists(Container::class)) {
throw new \RuntimeException("To enable the PhpDiContainerFactory please install php-di/php-di 7+!");
}
// @codeCoverageIgnoreEnd
Expand All @@ -24,7 +24,6 @@
use Cspray\AnnotatedContainer\ParameterStore;
use Cspray\AnnotatedContainer\ServiceDefinition;
use Cspray\Typiphy\ObjectType;
use DI\Container;
use DI\ContainerBuilder;
use Psr\Container\ContainerInterface;
use function DI\autowire;
Expand Down

0 comments on commit 38d43d9

Please sign in to comment.