public function resolve(RouteInterface $route)
    {
        if (is_string($handler = $route->handler()))
        {
            $handler = explode('@', $handler);
        }

        $parameters = (array) $route->parameters();

        list($handler, $reflection) = $this->reflection($handler);

        $parameters = $this->arguments($reflection, $parameters);

        return call_user_func_array($handler, $parameters);
    }
public function resolve(RouteInterface $route)
    {
        if (is_string($handler = $route->handler()))
        {
            $handler = explode('@', $handler);
        }

        $parameters = (array) $route->parameters();

        list($handler, $reflection) = $this->reflection($handler);

        $parameters = $this->arguments($reflection, $parameters);

        return call_user_func_array($handler, $parameters);
    }
public function resolve ( RouteInterface $ route ) { if ( is_string ( $ handler = $ route -> handler ( ) ) ) { $ handler = explode ( '@' , $ handler ) ; } $ parameters = ( array ) $ route -> parameters ( ) ; list ( $ handler , $ reflection ) = $ this -> reflection ( $ handler ) ; $ parameters = $ this -> arguments ( $ reflection , $ parameters ) ; return call_user_func_array ( $ handler , $ parameters ) ; }
Resolves the specified route instance.

@param  \Zapheus\Routing\RouteInterface $route
@return mixed
Resolves the specified route instance .