public function RequestMatcher::matchAttribute

Adds a check for request attribute.

Parameters

string $key The request attribute name:

string $regexp A Regexp:

1 call to RequestMatcher::matchAttribute()
RequestMatcher::__construct in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/RequestMatcher.php

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/RequestMatcher.php, line 122

Class

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

Namespace

Symfony\Component\HttpFoundation

Code

public function matchAttribute($key, $regexp) {
  $this->attributes[$key] = $regexp;
}