You are here

public function RequestMatcher::__construct in Zircon Profile 8

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

Parameters

string|null $path:

string|null $host:

string|string[]|null $methods:

string|string[]|null $ips:

array $attributes:

string|string[]|null $schemes:

File

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

Class

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

Namespace

Symfony\Component\HttpFoundation

Code

public function __construct($path = null, $host = null, $methods = null, $ips = null, array $attributes = array(), $schemes = null) {
  $this
    ->matchPath($path);
  $this
    ->matchHost($host);
  $this
    ->matchMethod($methods);
  $this
    ->matchIps($ips);
  $this
    ->matchScheme($schemes);
  foreach ($attributes as $k => $v) {
    $this
      ->matchAttribute($k, $v);
  }
}