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

Commit 6bb01f7

Browse files
committed
Merge pull request #46 from zerocrates/interop-exceptions
Use container-interop exception interfaces
2 parents 2a684f2 + 975be46 commit 6bb01f7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Exception/ExceptionInterface.php

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

1010
namespace Zend\ServiceManager\Exception;
1111

12-
interface ExceptionInterface
12+
use Interop\Container\Exception\ContainerException;
13+
14+
interface ExceptionInterface extends ContainerException
1315
{
1416
}

src/Exception/ServiceNotFoundException.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
namespace Zend\ServiceManager\Exception;
1111

12-
class ServiceNotFoundException extends InvalidArgumentException
12+
use Interop\Container\Exception\NotFoundException;
13+
14+
class ServiceNotFoundException extends InvalidArgumentException implements
15+
NotFoundException
1316
{
1417
}

0 commit comments

Comments
 (0)