diff --git a/composer.json b/composer.json index 83fdde7d..dc56a753 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,8 @@ "require": { "php": ">=5.5", "ext-mbstring": "*", - "symfony/property-access": "^2.8 || ^3.4 || ^4.4" + "symfony/property-access": "^2.8 || ^3.4 || ^4.4", + "psr/container": "^1.0" }, "require-dev": { "phpunit/phpunit": "^4.8" diff --git a/src/Execution/Container/Container.php b/src/Execution/Container/Container.php index 975f9d1b..42f4561c 100644 --- a/src/Execution/Container/Container.php +++ b/src/Execution/Container/Container.php @@ -8,7 +8,9 @@ namespace Youshido\GraphQL\Execution\Container; -class Container implements ContainerInterface +use \Psr\Container\ContainerInterface as PsrContainerInterface; + +class Container implements ContainerInterface, PsrContainerInterface { private $keyset = []; @@ -72,4 +74,4 @@ private function assertIdentifierSet($id) throw new \RuntimeException(sprintf('Container item "%s" was not set', $id)); } } -} \ No newline at end of file +}