public function RequestMatcher::matchIps

Adds a check for the client IP.

Parameters

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

2 calls to RequestMatcher::matchIps()
RequestMatcher::matchIp in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/RequestMatcher.php
Adds a check for the client IP.
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 101

Class

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

Namespace

Symfony\Component\HttpFoundation

Code

public function matchIps($ips) {
  $this->ips = (array) $ips;
}