/** * Check if the route matches the current request on ANY method, * and if so execute its callback. * * @return mixed The route callback is invoked */ private function executeAny() { if (in_array(Router::requestMethod(), Router::allowed()) && is_array($vars = $this->match())) { $ref = new \ReflectionFunction($this->callback); return $ref->invokeArgs($vars); } return; }