protected function callActionOnArrayBasedRoute($routeInfo)
    {
        $action = $routeInfo[1];

        if (isset($action['uses'])) {
            return $this->prepareResponse($this->callControllerAction($routeInfo));
        }

        foreach ($action as $value) {
            if ($value instanceof Closure) {
                $closure = $value->bindTo(new RoutingClosure());
                break;
            }
        }

        try {
            return $this->prepareResponse($this->call($closure, $routeInfo[2]));
        } catch (HttpResponseException $e) {
            return $e->getResponse();
        }
    }
protected function callActionOnArrayBasedRoute($routeInfo)
    {
        $action = $routeInfo[1];

        if (isset($action['uses'])) {
            return $this->prepareResponse($this->callControllerAction($routeInfo));
        }

        foreach ($action as $value) {
            if ($value instanceof Closure) {
                $closure = $value->bindTo(new RoutingClosure());
                break;
            }
        }

        try {
            return $this->prepareResponse($this->call($closure, $routeInfo[2]));
        } catch (HttpResponseException $e) {
            return $e->getResponse();
        }
    }
protected function callActionOnArrayBasedRoute ( $ routeInfo ) { $ action = $ routeInfo [ 1 ] ; if ( isset ( $ action [ 'uses' ] ) ) { return $ this -> prepareResponse ( $ this -> callControllerAction ( $ routeInfo ) ) ; } foreach ( $ action as $ value ) { if ( $ value instanceof Closure ) { $ closure = $ value -> bindTo ( new RoutingClosure ( ) ) ; break ; } } try { return $ this -> prepareResponse ( $ this -> call ( $ closure , $ routeInfo [ 2 ] ) ) ; } catch ( HttpResponseException $ e ) { return $ e -> getResponse ( ) ; } }
Call the Closure on the array based route.

@param  array  $routeInfo

@return mixed
Call the Closure on the array based route .