[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch




/vendor/zendframework/zend-eventmanager/src/ -> LazyListener.php (summary)

Zend Framework (http://framework.zend.com/)

Copyright: Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
License: https://github.com/zendframework/zend-eventmanager/blob/master/LICENSE.md
File Size: 122 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LazyListener:: (3 methods):

Class: LazyListener  - X-Ref

Lazy listener instance.

Used to allow lazy creation of listeners via a dependency injection

Lazy listener definitions have the following members:

- listener: the service name of the listener to use.
- method: the method name of the listener to invoke for the specified event.

If desired, you can pass $env at instantiation; this will be passed to the
container's `build()` method, if it has one, when creating the listener

Pass instances directly to the event manager's `attach()` method as the
listener argument.
__construct(array $definition, ContainerInterface $container, array $env = [])   X-Ref

param: array $definition
param: ContainerInterface $container
param: array $env

__invoke(EventInterface $event)   X-Ref
Use the listener as an invokable, allowing direct attachment to an event manager.

param: EventInterface $event
return: callable

fetchListener()   X-Ref

return: callable

Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1