Phastlight\EventEmitter::on PHP 메소드

on() 공개 메소드

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);
    }