src/Slim/Handlers/Strategies/ActionStrategy.php
public function callAction(
        callable $callable,
        ServerRequestInterface $request,
        ResponseInterface $response,
        array $routeArguments
    ) {

        try {
            return call_user_func_array($callable, $this->buildParams($callable, $request, $routeArguments));
        } catch (Exception $e) {
            $handler = $this->container->getActionErrorHandler();

            return $handler($e, $request, $response);
        }
    }
public function callAction(
        callable $callable,
        ServerRequestInterface $request,
        ResponseInterface $response,
        array $routeArguments
    ) {

        try {
            return call_user_func_array($callable, $this->buildParams($callable, $request, $routeArguments));
        } catch (Exception $e) {
            $handler = $this->container->getActionErrorHandler();

            return $handler($e, $request, $response);
        }
    }
public function callAction ( callable $ callable , ServerRequestInterface $ request , ResponseInterface $ response , array $ routeArguments ) { try { return call_user_func_array ( $ callable , $ this -> buildParams ( $ callable , $ request , $ routeArguments ) ) ; } catch ( Exception $ e ) { $ handler = $ this -> container -> getActionErrorHandler ( ) ; return $ handler ( $ e , $ request , $ response ) ; } }
Call a method in an Action class

May be overriden to add some logic before or after call

@param callable               $callable
@param ServerRequestInterface $request
@param ResponseInterface      $response
@param array                  $routeArguments

@return mixed
Call a method in an Action class