src/API.php
private function callAction($actionReader, $apiRequest, $action, $args)
    {
        $actionExecutor = new ActionExecutor($actionReader);

        /** @var ActionResponseModel $actionResponse */
        $actionResponse = $actionExecutor->execute($apiRequest, $action, $args);

        $ack = new AckModel();

        $class = '';
        if (is_object($actionResponse->getResponse())) {
            $class = get_class($actionResponse->getResponse());
        }

        $ack
            ->setPkgUuid($actionResponse->getPkgUuid())
            ->setSuccess(true)
            ->setServerCode(200)
            ->setLocation($apiRequest->getPath())
            ->setLocationParams($actionResponse->getParams())
            ->setRequestArgs($actionResponse->getArgs())
            ->setPayloadClass($class)
            ->setPayload($actionResponse->getResponse());

        return $ack;
    }
private function callAction($actionReader, $apiRequest, $action, $args)
    {
        $actionExecutor = new ActionExecutor($actionReader);

        /** @var ActionResponseModel $actionResponse */
        $actionResponse = $actionExecutor->execute($apiRequest, $action, $args);

        $ack = new AckModel();

        $class = '';
        if (is_object($actionResponse->getResponse())) {
            $class = get_class($actionResponse->getResponse());
        }

        $ack
            ->setPkgUuid($actionResponse->getPkgUuid())
            ->setSuccess(true)
            ->setServerCode(200)
            ->setLocation($apiRequest->getPath())
            ->setLocationParams($actionResponse->getParams())
            ->setRequestArgs($actionResponse->getArgs())
            ->setPayloadClass($class)
            ->setPayload($actionResponse->getResponse());

        return $ack;
    }
private function callAction ( $ actionReader , $ apiRequest , $ action , $ args ) { $ actionExecutor = new ActionExecutor ( $ actionReader ) ; /** @var ActionResponseModel $actionResponse */ $ actionResponse = $ actionExecutor -> execute ( $ apiRequest , $ action , $ args ) ; $ ack = new AckModel ( ) ; $ class = '' ; if ( is_object ( $ actionResponse -> getResponse ( ) ) ) { $ class = get_class ( $ actionResponse -> getResponse ( ) ) ; } $ ack -> setPkgUuid ( $ actionResponse -> getPkgUuid ( ) ) -> setSuccess ( true ) -> setServerCode ( 200 ) -> setLocation ( $ apiRequest -> getPath ( ) ) -> setLocationParams ( $ actionResponse -> getParams ( ) ) -> setRequestArgs ( $ actionResponse -> getArgs ( ) ) -> setPayloadClass ( $ class ) -> setPayload ( $ actionResponse -> getResponse ( ) ) ; return $ ack ; }
Call Action.

@param ActionReader     $actionReader
@param RestRequestModel $apiRequest
@param $action
@param $args

@return AckModel
Call Action .