public invokeRoute ( string $name ) : mixed | ||
$name | string | The description of the handler |
return | mixed | Returns the result of the invoked handler of the specified Route |
public function invokeRoute($name)
{
$args = func_get_args();
array_shift($args);
return empty($args) ? call_user_func($this->getRouteHandler($name)) : call_user_func_array($this->getRouteHandler($name), $args);
}