Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe LazyServiceEventListener

Fonctions membres publiques

 __construct (ContainerInterface $container, string $serviceId, string $method='')
 
 __invoke (EventInterface $event)
 

Attributs privés

 $container
 
 $serviceId
 
 $method
 

Description détaillée

Decorator for an event listener to be pulled from the service container.

Depuis
2.0.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( ContainerInterface  $container,
string  $serviceId,
string  $method = '' 
)

Constructor.

Paramètres
ContainerInterface$containerThe service container to load the service from when it shall be executed
string$serviceIdThe ID of the service from the container to be used
string$methodThe 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)
Depuis
2.0.0
Exceptions

Références LazyServiceEventListener\$container, LazyServiceEventListener\$method, LazyServiceEventListener\$serviceId, class, et method.

Documentation des fonctions membres

◆ __invoke()

__invoke ( EventInterface  $event)

Load a service from the container to listen to an event.

Paramètres
EventInterface$eventThe event to process
Renvoie
void
Depuis
2.0.0
Exceptions

Références $this, class, et method.

Documentation des champs

◆ $container

$container
private

◆ $method

$method
private

◆ $serviceId

$serviceId
private

La documentation de cette classe a été générée à partir du fichier suivant :