public static function popRequest()
    {
        $removed = array_pop(static::$_requests);
        $last = end(static::$_requests);
        if ($last) {
            static::setRequestContext($last);
            reset(static::$_requests);
        }

        return $removed;
    }
public static function popRequest()
    {
        $removed = array_pop(static::$_requests);
        $last = end(static::$_requests);
        if ($last) {
            static::setRequestContext($last);
            reset(static::$_requests);
        }

        return $removed;
    }
public static function popRequest ( ) { $ removed = array_pop ( static :: $ _requests ) ; $ last = end ( static :: $ _requests ) ; if ( $ last ) { static :: setRequestContext ( $ last ) ; reset ( static :: $ _requests ) ; } return $ removed ; }
Pops a request off of the request stack. Used when doing requestAction

@return \Cake\Http\ServerRequest The request removed from the stack.
@see \Cake\Routing\Router::pushRequest()
@see \Cake\Routing\RequestActionTrait::requestAction()
Pops a request off of the request stack . Used when doing requestAction