EventDispatcherInterface::addListener()

addListener(string $eventName, callable $listener, int $priority)

Adds an event listener that listens on the specified events.

Parameters

string $eventName The event to listen on
callable $listener The listener
int $priority The higher this value, the earlier an event listener will be triggered in the chain (defaults to 0)
doc_Symfony
2016-10-28 06:15:31
Comments
Leave a Comment

Please login to continue.