Skip to content

Commit

Permalink
Correcting eventManager() deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
challgren authored Nov 22, 2018
1 parent a65b0cd commit 8fd9148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Event/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 8fd9148

Please sign in to comment.