PHP Интерфейс ManaPHP\ComponentInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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

Описание методов

attachEvent() публичный метод

Attach a listener to the events manager
public attachEvent ( string $event, callable $handler ) : static
$event string
$handler callable
Результат static

dump() публичный метод

public dump ( ) : array
Результат array

fireEvent() публичный метод

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
Результат boolean | null

getDependencyInjector() публичный метод

Returns the internal dependency injector
public getDependencyInjector ( ) : Di
Результат Di

setDependencyInjector() публичный метод

Sets the dependency injector
public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
Результат static