Manage events.
More...
|
static | addOneListener (string $eventName, $action) |
|
static | start () |
| Starts the event manager (in app/config/services.php)
|
|
static | addListener ($eventNames, $action) |
| Adds a listener on eventName.
|
|
static | addListeners (array $listeners) |
| Adds a list of listeners.
|
|
static | store () |
| Store the managed events in cache (do not use in prod)
|
|
static | trigger (string $eventName, &... $params) |
| Trigger an event.
|
|
|
static string | $key = 'events/events' |
|
Manage events.
Ubiquity\contents\transformation\events$EventsManager This class is part of Ubiquity
- Author
- jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
- Version
- 1.0.2
Definition at line 16 of file EventsManager.php.
◆ addListener()
static addListener |
( |
|
$eventNames, |
|
|
|
$action |
|
) |
| |
|
static |
Adds a listener on eventName.
- Parameters
-
string | array | $eventNames | |
EventListenerInterface | callable | $action | |
Definition at line 46 of file EventsManager.php.
◆ addListeners()
static addListeners |
( |
array |
$listeners | ) |
|
|
static |
◆ addOneListener()
static addOneListener |
( |
string |
$eventName, |
|
|
|
$action |
|
) |
| |
|
static |
◆ start()
Starts the event manager (in app/config/services.php)
Definition at line 34 of file EventsManager.php.
◆ store()
Store the managed events in cache (do not use in prod)
Definition at line 69 of file EventsManager.php.
◆ trigger()
static trigger |
( |
string |
$eventName, |
|
|
&... |
$params |
|
) |
| |
|
static |
Trigger an event.
- Parameters
-
string | $eventName | |
| mixed | ...$params |
Definition at line 78 of file EventsManager.php.
◆ triggerOne()
static triggerOne |
( |
|
$action, |
|
|
& |
$params |
|
) |
| |
|
staticprivate |
◆ $key
string $key = 'events/events' |
|
staticprivate |
◆ $managedEvents
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/events/EventsManager.php