Download the PHP package contributte/dummy-events without Composer
On this page you can find all versions of the php package contributte/dummy-events. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download contributte/dummy-events
More information about contributte/dummy-events
Files in contributte/dummy-events
Package dummy-events
Short Description Simple events for Nette
License MIT
Homepage https://github.com/contributte/events
Informations about the package dummy-events
Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
Disclaimer
:warning: | This project is no longer being maintained. Please use contributte/event-dispatcher. |
---|
Composer | contributte/dummy-events |
---|---|
Version | |
PHP | |
License |
Documentation
Usage
Register extension
Register in your config file (e.q. config.neon).
Register events
On Container compile - EventsExtension collect all services which implement EventsSubscriber and call their onEvents($em)
method.
Register lazy events
Name tag as event name with prefix event.
Or use tag arrays with key name events.
This prevents usage of other tags.
If EventsSubscriber register more events and also is lazy registered (by tags in neon). Implemented method
onEvents(EventsManager $em)
is called only once.
Fire events
Inject to your class ultra-simple EventsManager.
Development
This package was maintain by these authors.
Consider to support contributte development team. Also thank you for being used this package.