You are here

public function RequestMatcher::matchMethod in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/RequestMatcher.php \Symfony\Component\HttpFoundation\RequestMatcher::matchMethod()

Adds a check for the HTTP method.

Parameters

string|string[] $method An HTTP method or an array of HTTP methods:

1 call to RequestMatcher::matchMethod()
RequestMatcher::__construct in vendor/symfony/http-foundation/RequestMatcher.php

File

vendor/symfony/http-foundation/RequestMatcher.php, line 127

Class

RequestMatcher
RequestMatcher compares a pre-defined set of checks against a Request instance.

Namespace

Symfony\Component\HttpFoundation

Code

public function matchMethod($method) {
  $this->methods = array_map('strtoupper', (array) $method);
}