PHP Class ManaPHP\Event\Manager

Inheritance: implements ManaPHP\Event\ManagerInterface
Afficher le fichier Open project: manaphp/manaphp

Protected Properties

Свойство Type Description
$_events array
$_peeks array

Méthodes publiques

Méthode Description
attachEvent ( string $event, callable $handler ) : void Attach a listener to the events manager
fireEvent ( string $event, Component | Di $source, array $data = [] ) : boolean | null Fires an event in the events manager causing that active listeners be notified about it
peekEvents ( callable $handler ) : void

Method Details

attachEvent() public méthode

Attach a listener to the events manager
public attachEvent ( string $event, callable $handler ) : void
$event string
$handler callable
Résultat void

fireEvent() public méthode

$eventsManager->fire('db', $connection);
public fireEvent ( string $event, Component | Di $source, array $data = [] ) : boolean | null
$event string
$source ManaPHP\Component | ManaPHP\Di
$data array
Résultat boolean | null

peekEvents() public méthode

public peekEvents ( callable $handler ) : void
$handler callable
Résultat void

Property Details

$_events protected_oe property

protected array $_events
Résultat array

$_peeks protected_oe property

protected array $_peeks
Résultat array