Dingo\Api\Routing\Route::makeControllerInstance PHP Method

makeControllerInstance() protected method

Make a new controller instance through the container.
protected makeControllerInstance ( ) : Illuminate\Routing\Controller | Laravel\Lumen\Routing\Controller
return Illuminate\Routing\Controller | Laravel\Lumen\Routing\Controller
    protected function makeControllerInstance()
    {
        list($this->controllerClass, $this->controllerMethod) = explode('@', $this->action['uses']);
        $this->container->instance($this->controllerClass, $this->controller = $this->container->make($this->controllerClass));
        return $this->controller;
    }