From 975be467e52afc436346b973b49fdb6c3b439213 Mon Sep 17 00:00:00 2001 From: John Flatness Date: Tue, 3 Nov 2015 19:52:09 -0500 Subject: [PATCH] Use container-interop exception interfaces Fix #45 --- src/Exception/ExceptionInterface.php | 4 +++- src/Exception/ServiceNotFoundException.php | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Exception/ExceptionInterface.php b/src/Exception/ExceptionInterface.php index ca59fbf3..ef0f374c 100644 --- a/src/Exception/ExceptionInterface.php +++ b/src/Exception/ExceptionInterface.php @@ -9,6 +9,8 @@ namespace Zend\ServiceManager\Exception; -interface ExceptionInterface +use Interop\Container\Exception\ContainerException; + +interface ExceptionInterface extends ContainerException { } diff --git a/src/Exception/ServiceNotFoundException.php b/src/Exception/ServiceNotFoundException.php index 478f4ee0..a9a237a8 100644 --- a/src/Exception/ServiceNotFoundException.php +++ b/src/Exception/ServiceNotFoundException.php @@ -9,6 +9,9 @@ namespace Zend\ServiceManager\Exception; -class ServiceNotFoundException extends InvalidArgumentException +use Interop\Container\Exception\NotFoundException; + +class ServiceNotFoundException extends InvalidArgumentException implements + NotFoundException { }