@@ -32,6 +32,10 @@ |
||
32 | 32 | return $this->addListener($event, $this->getConditionalCallable($listener, $condition), $priority); |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $event |
|
37 | + * @param \Closure $condition |
|
38 | + */ |
|
35 | 39 | public function once($event, callable $listener, $condition = null, int $priority = 0) |
36 | 40 | { |
37 | 41 | return $this->on($event, $this->getOnceCallable($this->getConditionalCallable($listener, $condition), $event), null, $priority); |