[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/ -> RequestMatcher.php (summary)

(no description)

File Size: 156 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

RequestMatcher:: (8 methods):
  __construct()
  matchHost()
  matchPath()
  matchIp()
  matchIps()
  matchMethod()
  matchAttribute()
  matches()


Class: RequestMatcher  - X-Ref

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

__construct($path = null, $host = null, $methods = null, $ips = null, array $attributes = array()   X-Ref

param: string|null          $path
param: string|null          $host
param: string|string[]|null $methods
param: string|string[]|null $ips
param: array                $attributes

matchHost($regexp)   X-Ref
Adds a check for the URL host name.

param: string $regexp A Regexp

matchPath($regexp)   X-Ref
Adds a check for the URL path info.

param: string $regexp A Regexp

matchIp($ip)   X-Ref
Adds a check for the client IP.

param: string $ip A specific IP address or a range specified using IP/netmask like 192.168.1.0/24

matchIps($ips)   X-Ref
Adds a check for the client IP.

param: string|string[] $ips A specific IP address or a range specified using IP/netmask like 192.168.1.0/24

matchMethod($method)   X-Ref
Adds a check for the HTTP method.

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

matchAttribute($key, $regexp)   X-Ref
Adds a check for request attribute.

param: string $key    The request attribute name
param: string $regexp A Regexp

matches(Request $request)   X-Ref
{@inheritdoc}




Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1