Overview

Namespaces

  • Composer
    • Autoload
  • Guzzle
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Mock
    • Stream
  • Mockery
    • Adapter
      • Phpunit
    • CountValidator
    • Exception
    • Generator
      • StringManipulation
        • Pass
    • Loader
    • Matcher
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • Fatzebra
      • Message
  • PHP
  • Symfony
    • Component
      • EventDispatcher
        • Debug
        • DependencyInjection
        • Tests
          • Debug
          • DependencyInjection
      • HttpFoundation
        • File
          • Exception
          • MimeType
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
        • Tests
          • File
            • MimeType
          • Session
            • Attribute
            • Flash
            • Storage
              • Handler
              • Proxy
      • Yaml
        • Exception
        • Tests

Classes

  • AcceptHeader
  • AcceptHeaderItem
  • ApacheRequest
  • BinaryFileResponse
  • Cookie
  • ExpressionRequestMatcher
  • FileBag
  • HeaderBag
  • IpUtils
  • JsonResponse
  • ParameterBag
  • RedirectResponse
  • Request
  • RequestMatcher
  • RequestStack
  • Response
  • ResponseHeaderBag
  • ServerBag
  • StreamedResponse

Interfaces

  • RequestMatcherInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class RequestMatcher

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

Symfony\Component\HttpFoundation\RequestMatcher implements Symfony\Component\HttpFoundation\RequestMatcherInterface

Direct known subclasses

Symfony\Component\HttpFoundation\ExpressionRequestMatcher
Namespace: Symfony\Component\HttpFoundation
Author: Fabien Potencier fabien@symfony.com
Api
Located at RequestMatcher.php
Methods summary
public
# __construct( string|null $path = null, string|null $host = null, string|string[]|null $methods = null, string|string[]|null $ips = null, array $attributes = array(), string|string[]|null $schemes = null )

Parameters

$path
$host
$methods
$ips
$attributes
$schemes
public
# matchScheme( string|string[]|null $scheme )

Adds a check for the HTTP scheme.

Adds a check for the HTTP scheme.

Parameters

$scheme
An HTTP scheme or an array of HTTP schemes
public
# matchHost( string $regexp )

Adds a check for the URL host name.

Adds a check for the URL host name.

Parameters

$regexp
A Regexp
public
# matchPath( string $regexp )

Adds a check for the URL path info.

Adds a check for the URL path info.

Parameters

$regexp
A Regexp
public
# matchIp( string $ip )

Adds a check for the client IP.

Adds a check for the client IP.

Parameters

$ip
A specific IP address or a range specified using IP/netmask like 192.168.1.0/24
public
# matchIps( string|string[] $ips )

Adds a check for the client IP.

Adds a check for the client IP.

Parameters

$ips
A specific IP address or a range specified using IP/netmask like 192.168.1.0/24
public
# matchMethod( string|string[] $method )

Adds a check for the HTTP method.

Adds a check for the HTTP method.

Parameters

$method
An HTTP method or an array of HTTP methods
public
# matchAttribute( string $key, string $regexp )

Adds a check for request attribute.

Adds a check for request attribute.

Parameters

$key
The request attribute name
$regexp
A Regexp
public boolean
# matches( Symfony\Component\HttpFoundation\Request $request )

Decides whether the rule(s) implemented by the strategy matches the supplied request.

Decides whether the rule(s) implemented by the strategy matches the supplied request.

Parameters

$request
The request to check for a match

Returns

boolean
true if the request matches, false otherwise

Api

Implementation of

Symfony\Component\HttpFoundation\RequestMatcherInterface::matches()
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen