public function Request::isMethod in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::isMethod()
Checks if the request method is of specified type.
Parameters
string $method Uppercase request method (GET, POST etc).:
Return value
bool
File
- vendor/
symfony/ http-foundation/ Request.php, line 1452
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundationCode
public function isMethod($method) {
return $this
->getMethod() === strtoupper($method);
}