| Fully Qualified Name: | Zend\EventManager\LazyEventListener |
| Extends: | LazyListener |
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:
| Name | Description | Defined By |
|---|---|---|
| __construct() | LazyEventListener | |
| __invoke() | Use the listener as an invokable, allowing direct attachment to an event manager. | LazyListener |
| getEvent() | LazyEventListener | |
| getPriority() | LazyEventListener |
| Parameter Name | Type | Description |
|---|---|---|
| $definition | array | |
| $container | \ContainerInterface | |
| $env | array |
Returns:
Use the listener as an invokable, allowing direct attachment to an event manager.
| Parameter Name | Type | Description |
|---|---|---|
| $event | \EventInterface |
Returns: callable
Returns: string
| Parameter Name | Type | Description |
|---|---|---|
| $default |
Returns: int