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\HttpFoundationView 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 |