Zend Framework
3.0
|
Lazy listener instance for use with LazyListenerAggregate. More...
Public Member Functions | |
__construct (array $definition, ContainerInterface $container, array $env=[]) | |
getEvent () | |
getPriority ($default=1) | |
Public Member Functions inherited from LazyListener | |
__construct (array $definition, ContainerInterface $container, array $env=[]) | |
__invoke (EventInterface $event) | |
Use the listener as an invokable, allowing direct attachment to an event manager. | |
Lazy listener instance for use with LazyListenerAggregate.
Used as an internal class for the LazyAggregate to allow lazy creation of listeners via a dependency injection container.
Lazy event listener definitions add the following members to what the LazyListener accepts:
__construct | ( | array | $definition, |
ContainerInterface | $container, | ||
array | $env = [] |
||
) |
array | $definition | |
ContainerInterface | $container | |
array | $env |
getEvent | ( | ) |
getPriority | ( | $default = 1 | ) |