示例#1
0
 /**
  * Gets the request "intended" method.
  *
  * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  * then it is used to determine the "real" intended HTTP method.
  *
  * The _method request parameter can also be used to determine the HTTP method,
  * but only if enableHttpMethodParameterOverride() has been called.
  *
  * The method is always an uppercased string.
  *
  * @return string The request method
  *
  * @api
  *
  * @see getRealMethod()
  */
 public function getMethod()
 {
     return parent::getMethod();
 }