Skip to content

Commit

Permalink
Merge pull request #38 from challgren/cakephp36
Browse files Browse the repository at this point in the history
Fixing some deprecations
  • Loading branch information
josegonzalez authored Nov 28, 2018
2 parents 10ad5a7 + 8fd9148 commit a39f97f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 All @@ -50,7 +50,7 @@ public function isType($type)
{
$template = sprintf('Bake/%s.ctp', $type);

return strpos($this->event->data[0], $template) !== false;
return strpos($this->event->getData('0'), $template) !== false;
}

/**
Expand Down

0 comments on commit a39f97f

Please sign in to comment.