Пример #1
0
 /**
  * Pops a request off of the request stack.  Used when doing requestAction
  *
  * @return \Cake\Network\Request The request removed from the stack.
  * @see Router::pushRequest()
  * @see Object::requestAction()
  */
 public static function popRequest()
 {
     $removed = array_pop(static::$_requests);
     $last = end(static::$_requests);
     if ($last) {
         static::$_routes->setContext($last);
         reset(static::$_requests);
     }
     return $removed;
 }