PHP Interface ManaPHP\ComponentInterface

Afficher le fichier Open project: manaphp/manaphp Interface Usage Examples

Méthodes publiques

Méthode Description
attachEvent ( string $event, callable $handler ) : static Attach a listener to the events manager
dump ( ) : array
fireEvent ( string $event, array $data = [] ) : boolean | null Fires an event in the events manager causing that the active listeners will be notified about it
getDependencyInjector ( ) : Di Returns the internal dependency injector
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static Sets the dependency injector

Method Details

attachEvent() public méthode

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

dump() public méthode

public dump ( ) : array
Résultat array

fireEvent() public méthode

Fires an event in the events manager causing that the active listeners will be notified about it
public fireEvent ( string $event, array $data = [] ) : boolean | null
$event string
$data array
Résultat boolean | null

getDependencyInjector() public méthode

Returns the internal dependency injector
public getDependencyInjector ( ) : Di
Résultat Di

setDependencyInjector() public méthode

Sets the dependency injector
public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
Résultat static