diff --git a/src/Event/EventListener.php b/src/Event/EventListener.php index 603855d..7391f96 100644 --- a/src/Event/EventListener.php +++ b/src/Event/EventListener.php @@ -24,7 +24,7 @@ abstract class EventListener implements EventListenerInterface public function __construct(CakeEvent $event) { $this->event = $event; - $this->eventManager()->on($this); + $this->getEventManager()->on($this); } /**