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

Commit a78d6c4

Browse files
committed
Merge branch 'hotfix/46'
Close #46
2 parents 2a684f2 + 4651dc6 commit a78d6c4

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5-
## 2.6.1 - TBD
5+
## 2.7.0 - TBD
66

77
### Added
88

9-
- [#60](https://github.com/zendframework/zend-servicemanager/pull/60) adds forward compatibility features for
10-
`AbstractPluingManager` and introduces `InvokableFactory` to help forward migration to version 3.
9+
- [#60](https://github.com/zendframework/zend-servicemanager/pull/60) adds
10+
forward compatibility features for `AbstractPluingManager` and introduces
11+
`InvokableFactory` to help forward migration to version 3.
1112

1213
### Deprecated
1314

@@ -19,7 +20,10 @@ All notable changes to this project will be documented in this file, in reverse
1920

2021
### Fixed
2122

22-
- Nothing.
23+
- [#46](https://github.com/zendframework/zend-servicemanager/pull/46) updates
24+
the exception hierarchy to inherit from the container-interop exceptions.
25+
This ensures that all exceptions thrown by the component follow the
26+
recommendations of that project.
2327

2428
## 2.6.0 - 2015-07-23
2529

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)