Skip to content

Commit

Permalink
Merge pull request #12 from zviryatko/patch-1
Browse files Browse the repository at this point in the history
Update PageCacheListener.php
  • Loading branch information
weierophinney committed Feb 3, 2020
2 parents a35cb99 + 80ee296 commit 9a2aefb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhlySimplePage/PageCacheListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public function __construct(AbstractAdapter $cache)
*/
public function attach(EventManagerInterface $events)
{
$events->attach('route', array($this, 'onRoutePost'), -99);
$events->attach('finish', array($this, 'onFinishPost'), -10001);
$this->listeners[] = $events->attach('route', array($this, 'onRoutePost'), -99);
$this->listeners[] = $events->attach('finish', array($this, 'onFinishPost'), -10001);
}

/**
Expand Down

0 comments on commit 9a2aefb

Please sign in to comment.