Skip to content

Commit 56fcd34

Browse files
Moved to psr-11
1 parent 47b1d02 commit 56fcd34

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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"

src/Container.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Moon\Container;
44

5-
use Interop\Container\ContainerInterface;
6-
use Interop\Container\Exception\ContainerException;
75
use Moon\Container\Exception\NotFoundException;
6+
use Psr\Container\ContainerExceptionInterface;
7+
use Psr\Container\ContainerInterface;
88

99
class 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
*/

src/Exception/NotFoundException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace 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
}

0 commit comments

Comments
 (0)