Zend Framework  3.0
Public Member Functions | List of all members
LazyEventListener Class Reference

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.
 

Detailed Description

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:

Constructor & Destructor Documentation

__construct ( array  $definition,
ContainerInterface  $container,
array  $env = [] 
)
Parameters
array$definition
ContainerInterface$container
array$env

Member Function Documentation

getEvent ( )
Returns
string
getPriority (   $default = 1)
Returns
int