Download the PHP package trash-panda/m2-callable-event-listeners without Composer
On this page you can find all versions of the php package trash-panda/m2-callable-event-listeners. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download trash-panda/m2-callable-event-listeners
More information about trash-panda/m2-callable-event-listeners
Files in trash-panda/m2-callable-event-listeners
Download trash-panda/m2-callable-event-listeners
More information about trash-panda/m2-callable-event-listeners
Files in trash-panda/m2-callable-event-listeners
Vendor trash-panda
Package m2-callable-event-listeners
Short Description Listen to events with plain PHP callable minus any configuration
License MIT
Package m2-callable-event-listeners
Short Description Listen to events with plain PHP callable minus any configuration
License MIT
Please rate this library. Is it a good library?
Informations about the package m2-callable-event-listeners
Magento 2 Callable Event Listeners
Allow to register event listeners with a plain PHP callable - minus the config.
Installation
Usage
Grab an instance of \TrashPanda\CallableEventListeners\Model\Manager
either via DI or from the object manager and pass an event name and a callable to the listen
method.
Now when the event some-event
is dispatched from \Magento\Framework\Event\Manager
your callable will be invoked
along with any other listeners attached via config.
Use Cases
- Scoping events to one particular code path - eg a command or a cron
- Prototyping
- Improved feedback from IDE - regarding classes and method existence
All versions of m2-callable-event-listeners with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0 <7.3
The package trash-panda/m2-callable-event-listeners contains the following files
Loading the files please wait ....