You are here

public function RequestMatcher::matchIps in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/RequestMatcher.php \Symfony\Component\HttpFoundation\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 vendor/symfony/http-foundation/RequestMatcher.php
Adds a check for the client IP.
RequestMatcher::__construct in vendor/symfony/http-foundation/RequestMatcher.php

File

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

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;
}