Download the PHP package radnan/rdn-event without Composer
On this page you can find all versions of the php package radnan/rdn-event. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package rdn-event
RdnEvent
The RdnEvent ZF2 module provides a service locator for event listeners.
How to install
-
Use
composer
to require theradnan/rdn-event
package:$ composer require radnan/rdn-event:1.*
-
Activate the module by including it in your
application.config.php
file:
2. Register listener with service locator
Place the following in your module.config.php
file:
<?php
return array(
'rdn_event_listeners' => array(
'invokables' => array(
'App:HelloWorld' => 'App\Listener\HelloWorld',
),
),
);
3. Attach the listener to the event manager
Now, place the following in your module.config.php
file:
<?php
return array(
'rdn_event' => array(
'listeners' => array(
'App:HelloWorld',
),
),
);
That's it! The module will fetch the listener from the service locator and attach it to the application's event manager.
All versions of rdn-event with dependencies
PHP Build Version
Package Version
Requires
zendframework/zend-eventmanager Version
2.*
zendframework/zend-mvc Version 2.*
zendframework/zend-servicemanager Version 2.*
zendframework/zend-stdlib Version 2.*
zendframework/zend-mvc Version 2.*
zendframework/zend-servicemanager Version 2.*
zendframework/zend-stdlib Version 2.*
The package radnan/rdn-event contains the following files
Loading the files please wait ....