This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes issue with using InputFilterAbstractFactory with application se…
…rvices As reported in #123, under zend-servicemanager v2, the `InputFilterAbstractFactory` raises a fatal error when calling `getServiceLocator()` if the container passed to the abstract factory is not a plugin manager, but instead the application-level service container. This patch updates the implementation to add some detection to determine if the container is a plugin manager when used under v2, and, if so, only then attempt to pull the parent service container. Additionally, it will now use itself if no parent container is present (this will typically cause the `canCreate()` test to fail anyways). All typehints on `ServiceLocatorInterface` were modified to `ContainerInterface` unless they were part of an existing interface definition, to ensure inner consistency, and forwards compatibility with v3.
- Loading branch information
1 parent
1e37715
commit 69d57a4
Showing
2 changed files
with
57 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters