abacaphiliac/zend-eventmanager-pluginmanager

A ZF2 Plugin Manager for ZF2 Event Managers

0.1.3 2016-04-04 14:58 UTC

README

Scrutinizer Code Quality Code Coverage Build Status

abacaphiliac/zend-eventmanager-pluginmanager

A ZF2 Plugin Manager for ZF2 Event Managers.

Installation

composer require abacaphiliac/zend-eventmanager-pluginmanager

Usage

  1. add Abacaphiliac\Zend\EventManager\PluginManager module to your ZF2 application module config.
  2. create a service-manager config block with key event_managers in your application config.
  3. register a named event manager in the event_managers config, via invokables, factories, etc.
  4. 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.