Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (ContainerInterface $container, string $serviceId, string $method='') | |
__invoke (EventInterface $event) | |
Attributs privés | |
$container | |
$serviceId | |
$method | |
Decorator for an event listener to be pulled from the service container.
__construct | ( | ContainerInterface | $container, |
string | $serviceId, | ||
string | $method = '' |
||
) |
Constructor.
ContainerInterface | $container | The service container to load the service from when it shall be executed |
string | $serviceId | The ID of the service from the container to be used |
string | $method | The method from the service to be called if necessary. If left empty, the service must be a callable; (i.e. have an __invoke() method on a class) |
Références LazyServiceEventListener\$container, LazyServiceEventListener\$method, LazyServiceEventListener\$serviceId, class, et method.
__invoke | ( | EventInterface | $event | ) |
Load a service from the container to listen to an event.
EventInterface | $event | The event to process |
|
private |
Référencé par LazyServiceEventListener\__construct().
|
private |
Référencé par LazyServiceEventListener\__construct().
|
private |
Référencé par LazyServiceEventListener\__construct().