PHP Class ManaPHP\Event\Manager

Inheritance: implements ManaPHP\Event\ManagerInterface
ファイルを表示 Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_events array
$_peeks array

Public Methods

Method 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 method

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

fireEvent() public method

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

peekEvents() public method

public peekEvents ( callable $handler ) : void
$handler callable
return void

Property Details

$_events protected_oe property

protected array $_events
return array

$_peeks protected_oe property

protected array $_peeks
return array