Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit ccf2346

Browse files
committed
Deprecated container-specific exceptions
1 parent dde9a68 commit ccf2346

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Container/Exception/InvalidArgumentException.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99

1010
use Interop\Container\Exception\ContainerException;
1111

12+
/**
13+
* @deprecated since 1.1.0; to remove in 2.0.0. This exception is currently
14+
* thrown by `Zend\Expressive\Container\ApplicationFactory`; starting
15+
* in 2.0.0, that factory will instead throw
16+
* `Zend\Expressive\Exception\InvalidArgumentException`.
17+
*/
1218
class InvalidArgumentException extends \InvalidArgumentException implements
1319
ContainerException,
1420
ExceptionInterface

src/Container/Exception/NotFoundException.php

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

1313
/**
1414
* Exception indicating a service was not found in the container.
15+
*
16+
* @deprecated since 1.1.0; to remove in 2.0.0. This exception is not thrown
17+
* by any classes within Expressive at this time.
1518
*/
1619
class NotFoundException extends RuntimeException implements
1720
ExceptionInterface,

0 commit comments

Comments
 (0)