Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-os committed Jan 28, 2017
1 parent 0ffdb71 commit 8d9b718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,16 +281,17 @@ 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;

// 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
Expand Down

0 comments on commit 8d9b718

Please sign in to comment.