src/FrameworkHandler.php
public function makePayload($load = true)
    {
        $request = Request::i();
        $response = Response::i();

        if ($load) {
            $request->load();
            $response->load();

            $stage = $this->getRequest()->getStage();

            if (is_array($stage)) {
                $request->setSoftStage($stage);
            }
        }

        return [
            'request' => $request,
            'response' => $response
        ];
    }
public function makePayload($load = true)
    {
        $request = Request::i();
        $response = Response::i();

        if ($load) {
            $request->load();
            $response->load();

            $stage = $this->getRequest()->getStage();

            if (is_array($stage)) {
                $request->setSoftStage($stage);
            }
        }

        return [
            'request' => $request,
            'response' => $response
        ];
    }
public function makePayload ( $ load = true ) { $ request = Request :: i ( ) ; $ response = Response :: i ( ) ; if ( $ load ) { $ request -> load ( ) ; $ response -> load ( ) ; $ stage = $ this -> getRequest ( ) -> getStage ( ) ; if ( is_array ( $ stage ) ) { $ request -> setSoftStage ( $ stage ) ; } } return [ 'request' => $ request , 'response' => $ response ] ; }
Creates a new Request and Response

@param bool $load whether to load the RnRs

@return array
Creates a new Request and Response