PHP Class Microweber\Providers\Event

Afficher le fichier Open project: microweber/microweber

Méthodes publiques

Свойство Type Description
$adapter An instance of the event adapter to use.

Méthodes publiques

Méthode Description
__construct ( ) array to store user callbacks
callRegisteredShutdown ( )
on ( $event_name, $callback )
registerShutdownEvent ( )
trigger ( $event_name, boolean | callable | mixed $data = false ) : array | mixed | false Emits event.

Method Details

__construct() public méthode

array to store user callbacks
public __construct ( )

callRegisteredShutdown() public méthode

on() public méthode

public on ( $event_name, $callback )

registerShutdownEvent() public méthode

trigger() public méthode

Emits event.
public trigger ( $event_name, boolean | callable | mixed $data = false ) : array | mixed | false
$event_name
$data boolean | callable | mixed
Résultat array | mixed | false

Property Details

$adapter public_oe static_oe property

An instance of the event adapter to use.
public static $adapter