/** * Run the before match callback on the route * * @param Phalcon\Mvc\Router\RouteInterface * @param string * @return bool * @author Neil Brayfield <*****@*****.**> */ protected function beforeMatch(RouteInterface $route, $uri) { if ($route->getBeforeMatch() != null) { return call_user_func($route->getBeforeMatch(), $uri, $route); } else { return true; } }