public function callAction(string $handler, array $arguments = []): Response
    {
        if (!class_exists($handler)) {
            throw new EndocoreException('Action class not found.');
        }

        /** @var \Bloatless\Endocore\Action\ActionInterface $action */
        $action = new $handler($this->config, $this->logger, $this->request);
        return $action->__invoke($arguments);
    }
public function callAction(string $handler, array $arguments = []): Response
    {
        if (!class_exists($handler)) {
            throw new EndocoreException('Action class not found.');
        }

        /** @var \Bloatless\Endocore\Action\ActionInterface $action */
        $action = new $handler($this->config, $this->logger, $this->request);
        return $action->__invoke($arguments);
    }
public function callAction ( string $ handler , array $ arguments = [ ] ) : Response { if ( ! class_exists ( $ handler ) ) { throw new EndocoreException ( 'Action class not found.' ) ; } /** @var \Bloatless\Endocore\Action\ActionInterface $action */ $ action = new $ handler ( $ this -> config , $ this -> logger , $ this -> request ) ; return $ action -> __invoke ( $ arguments ) ; }
Calls an action.

@param string $handler
@param array $arguments
@throws EndocoreException
@return Response
Calls an action .