Skip to content

Commit ea053f9

Browse files
committed
Move exceptions to the main namespace
This is so that we are consistent with other PSRs. https://groups.google.com/forum/#!topic/php-fig/L8rDUwRFsOU
1 parent b58310e commit ea053f9

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/Exception/ContainerException.php renamed to src/ContainerException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
44
*/
55

6-
namespace Psr\Container\Exception;
6+
namespace Psr\Container;
77

88
/**
99
* Base interface representing a generic exception in a container.

src/ContainerInterface.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
namespace Psr\Container;
77

8-
use Psr\Container\Exception\ContainerException;
9-
use Psr\Container\Exception\NotFoundException;
10-
118
/**
129
* Describes the interface of a container that exposes methods to read its entries.
1310
*/

src/Exception/NotFoundException.php renamed to src/NotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
44
*/
55

6-
namespace Psr\Container\Exception;
6+
namespace Psr\Container;
77

88
/**
99
* No entry was found in the container.

0 commit comments

Comments
 (0)