Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ChainRequestMatcher.php

class ChainRequestMatcher

ChainRequestMatcher verifies that all checks match against a Request instance.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • class \Symfony\Component\HttpFoundation\ChainRequestMatcher implements \Symfony\Component\HttpFoundation\RequestMatcherInterface

Expanded class hierarchy of ChainRequestMatcher

File

vendor/symfony/http-foundation/ChainRequestMatcher.php, line 19

Namespace

Symfony\Component\HttpFoundation
View source
class ChainRequestMatcher implements RequestMatcherInterface {
    
    /**
     * @param iterable<RequestMatcherInterface> $matchers
     */
    public function __construct(iterable $matchers) {
    }
    public function matches(Request $request) : bool {
        foreach ($this->matchers as $matcher) {
            if (!$matcher->matches($request)) {
                return false;
            }
        }
        return true;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
ChainRequestMatcher::matches public function Decides whether the rule(s) implemented by the strategy matches the supplied request. Overrides RequestMatcherInterface::matches
ChainRequestMatcher::__construct public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal