| 1 | <?php declare(strict_types = 1); |
||
| 14 | class EventDispatcher extends BaseEventDispatcher |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var Invoker |
||
| 18 | */ |
||
| 19 | private $invoker; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * EventDispatcher constructor. |
||
| 23 | * |
||
| 24 | * @param Invoker $container |
||
| 25 | */ |
||
| 26 | public function __construct(Invoker $container) |
||
| 27 | { |
||
| 28 | $this->invoker = $container; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritDoc |
||
| 33 | */ |
||
| 34 | protected function callListener($listener, EventContract $event) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritDoc |
||
| 41 | */ |
||
| 42 | protected function canBeCalled($listener): bool |
||
| 46 | } |