Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Phastlight
EventEmitter
on
Phastlight\EventEmitter::on PHP Method
EventEmitter Class Documentation
Show file
Open project: phastlight/phastlight
on()
public
method
add a listener to the end of the listeners array for the specified event
public
on
(
$event
,
$listener
)
public function on($event, $listener) { $this->addListener($event, $listener); }
EventEmitter
__construct
addListener
emit
getListeners
on
removeAllListeners
removeListener