From 8d9b71856cba514a228daf170588793c7b83e6d8 Mon Sep 17 00:00:00 2001 From: nik-os Date: Sat, 28 Jan 2017 13:39:25 +0200 Subject: [PATCH] fix --- src/Core.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Core.php b/src/Core.php index 9c3e4a5..853d27d 100644 --- a/src/Core.php +++ b/src/Core.php @@ -281,8 +281,9 @@ public function start($default) // Security layer $securityResult = true; + $coreLink = &$this; // Fire core security event - Event::fire('core.security', array(&$this, &$securityResult)); + Event::fire('core.security', array(&$coreLink, &$securityResult)); /** @var mixed $result External route controller action result */ $result = false; @@ -290,7 +291,7 @@ public function start($default) // If we have passed security application layer if ($securityResult) { // Fire core routing event - go to routing application layer - Event::signal('core.routing', array(&$this, &$result, $default)); + Event::signal('core.routing', array(&$coreLink, &$result, $default)); } // If no one has passed back routing callback