public function call($name, $parameters = [])
    {
        $child = null;

        // Available drivers does not include childs, we should split the
        // name into two (parent.child) where parent would be the name of
        // the resource.
        if (false !== strpos($name, '.')) {
            list($name, $child) = explode('.', $name, 2);
        }

        // When the resources is not available, or register we should
        // return false to indicate this status. This would allow the callee
        // to return 404 abort status.
        if (! isset($this->drivers[$name])) {
            return false;
        }

        return $this->dispatcher->call($this->drivers[$name], $child, $parameters);
    }
public function call($name, $parameters = [])
    {
        $child = null;

        // Available drivers does not include childs, we should split the
        // name into two (parent.child) where parent would be the name of
        // the resource.
        if (false !== strpos($name, '.')) {
            list($name, $child) = explode('.', $name, 2);
        }

        // When the resources is not available, or register we should
        // return false to indicate this status. This would allow the callee
        // to return 404 abort status.
        if (! isset($this->drivers[$name])) {
            return false;
        }

        return $this->dispatcher->call($this->drivers[$name], $child, $parameters);
    }
public function call ( $ name , $ parameters = [ ] ) { $ child = null ; // Available drivers does not include childs, we should split the // name into two (parent.child) where parent would be the name of // the resource. if ( false !== strpos ( $ name , '.' ) ) { list ( $ name , $ child ) = explode ( '.' , $ name , 2 ) ; } // When the resources is not available, or register we should // return false to indicate this status. This would allow the callee // to return 404 abort status. if ( ! isset ( $ this -> drivers [ $ name ] ) ) { return false ; } return $ this -> dispatcher -> call ( $ this -> drivers [ $ name ] , $ child , $ parameters ) ; }
Call a resource controller and action.

@param  string  $name
@param  array  $parameters

@return mixed
Call a resource controller and action .