abacaphiliac / zend-eventmanager-pluginmanager
A ZF2 Plugin Manager for ZF2 Event Managers
0.1.3
2016-04-04 14:58 UTC
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-25 19:41:41 UTC
README
abacaphiliac/zend-eventmanager-pluginmanager
A ZF2 Plugin Manager for ZF2 Event Managers.
Installation
composer require abacaphiliac/zend-eventmanager-pluginmanager
Usage
- add
Abacaphiliac\Zend\EventManager\PluginManager
module to your ZF2 application module config. - create a service-manager config block with key
event_managers
in your application config. - register a named event manager in the
event_managers
config, viainvokables
,factories
, etc. - get your named event manager from the service locator!
$eventManager = $serviceLocator->get('EventManagers')->get('MyNamedEventManager');
Dependencies
ZF2 EventManager, ModuleManager, MVC, and ServiceManager.
dev deployments include the entire framework because the Module collaboration test boots the ModuleManager, which has many hidden dependencies in most of the ZF tags.
See composer.json.
Contributing
composer install && vendor/bin/phing
This library attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.