[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/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):
  __construct()
  __invoke()
  fetchListener()


Class: LazyListener  - X-Ref

Lazy listener instance.

Used to allow lazy creation of listeners via a dependency injection
container.

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
instance.

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