This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated zend-view to zend-servicemanager v3
Updates zend-view to use the new zend-servicemanager v3 API. Changes include: - Removed `ServiceLocatorAwareInterface` implementation from `FlashMessenger` view helper; was never used internally, and the interface no longer exists anyways. - Navigation `AbstractHelper` now removes the `ServiceLocatorAwareInterface`, but keeps the methods originally defined by it, using duck-typing to do injection when necessary. Navigation view helpers require pulling navigation containers from the application container instance. This is automated by the Navigation `PluginManager` implementation now. - All factories were updated to use the new `FactoryInterface` definition from zend-servicemanager: - New namespace for the `FactoryInterface`. - New method name for the factory (`__invoke`). - New arguments for the factory (first argument is a container-interop `ContainerInterface`; required second argument `$name` and optional third argument `$options`). - Factories that pulled the parent locator were updated, as the container passed is now the application service manager. - Plugin managers were updated to the new `AbstractPluginManager` implementation: - Define `$instanceOf` and remove `validatePlugin` when applicable. - Define default configuration, merge it with incoming configuration, and pass to the parent constructor. - Define copious aliases to cover various naming patterns previously covered by normalization. - Initializers now have a new signature; all plugin-defined initializers were updated to it. - When lazy loading plugin managers, pass an empty `ServiceManager` instance. - All tests were updated to ensure plugin and service managers are properly injected and configured.
- Loading branch information
1 parent
adade3d
commit 8595427
Showing
19 changed files
with
319 additions
and
298 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
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
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
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
Oops, something went wrong.