Kraken\Event\EventEmitterTrait::once PHP 메소드

once() 공개 메소드

또한 보기: EventEmitterInterface::once
public once ( $event, callable $listener )
$listener callable
    public function once($event, callable $listener)
    {
        $handler = $this->emitter->once($event, $listener);
        return new EventListener($this, $handler->getEvent(), $handler->getHandler(), $handler->getListener());
    }