protected function callControllerAction($routeInfo)
    {
        $uses = $routeInfo[1]['uses'];

        if (is_string($uses) && ! Str::contains($uses, '@')) {
            $uses .= '@__invoke';
        }

        list($controller, $method) = explode('@', $uses);

        if (! method_exists($instance = $this->make($controller), $method)) {
            throw new NotFoundHttpException;
        }

        if ($instance instanceof LumenController) {
            return $this->callLumenController($instance, $method, $routeInfo);
        } else {
            return $this->callControllerCallable(
                [$instance, $method], $routeInfo[2]
            );
        }
    }
protected function callControllerAction($routeInfo)
    {
        $uses = $routeInfo[1]['uses'];

        if (is_string($uses) && ! Str::contains($uses, '@')) {
            $uses .= '@__invoke';
        }

        list($controller, $method) = explode('@', $uses);

        if (! method_exists($instance = $this->make($controller), $method)) {
            throw new NotFoundHttpException;
        }

        if ($instance instanceof LumenController) {
            return $this->callLumenController($instance, $method, $routeInfo);
        } else {
            return $this->callControllerCallable(
                [$instance, $method], $routeInfo[2]
            );
        }
    }
protected function callControllerAction ( $ routeInfo ) { $ uses = $ routeInfo [ 1 ] [ 'uses' ] ; if ( is_string ( $ uses ) && ! Str :: contains ( $ uses , '@' ) ) { $ uses .= '@__invoke' ; } list ( $ controller , $ method ) = explode ( '@' , $ uses ) ; if ( ! method_exists ( $ instance = $ this -> make ( $ controller ) , $ method ) ) { throw new NotFoundHttpException ; } if ( $ instance instanceof LumenController ) { return $ this -> callLumenController ( $ instance , $ method , $ routeInfo ) ; } else { return $ this -> callControllerCallable ( [ $ instance , $ method ] , $ routeInfo [ 2 ] ) ; } }
Call a controller based route.

@param  array  $routeInfo
@return mixed
Call a controller based route .