Efficiently\AuthorityController\ControllerAdditions::callAction PHP Method

callAction() public method

Execute an action on the controller.
public callAction ( string $method, array $parameters ) : Response
$method string
$parameters array
return Symfony\Component\HttpFoundation\Response
    public function callAction($method, $parameters)
    {
        $route = app('router')->current();
        $request = app('request');
        $this->assignAfter($route, $request, $method);
        $response = $this->before($route, $request, $method);
        if (is_null($response)) {
            $response = call_user_func_array([$this, $method], $parameters);
        }
        return $response;
    }