File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " moon-php/container" ,
33 "require" : {
4- "container-interop /container-interop " : " ^1.1 "
4+ "psr /container" : " ^1.0 "
55 },
66 "require-dev" : {
77 "phpunit/phpunit" : " ^5.6"
Original file line number Diff line number Diff line change 22
33namespace Moon \Container ;
44
5- use Interop \Container \ContainerInterface ;
6- use Interop \Container \Exception \ContainerException ;
75use Moon \Container \Exception \NotFoundException ;
6+ use Psr \Container \ContainerExceptionInterface ;
7+ use Psr \Container \ContainerInterface ;
88
99class Container implements ContainerInterface
1010{
@@ -42,7 +42,7 @@ public function __construct($entries = [])
4242 * @param string $alias Identifier of the entry to look for.
4343 *
4444 * @throws NotFoundException No entry was found for this identifier.
45- * @throws ContainerException Error while retrieving the entry.
45+ * @throws ContainerExceptionInterface Error while retrieving the entry.
4646 *
4747 * @return mixed Entry.
4848 */
Original file line number Diff line number Diff line change 22
33namespace Moon \Container \Exception ;
44
5- class NotFoundException extends \InvalidArgumentException implements \Interop \Container \Exception \NotFoundException
5+ use Psr \Container \NotFoundExceptionInterface ;
6+
7+ class NotFoundException extends \InvalidArgumentException implements NotFoundExceptionInterface
68{
79}
You can’t perform that action at this time.
0 commit comments