function ExpressionRequestMatcher::matches
Overrides RequestMatcherInterface::matches
File
-
vendor/
symfony/ http-foundation/ RequestMatcher/ ExpressionRequestMatcher.php, line 32
Class
- ExpressionRequestMatcher
- ExpressionRequestMatcher uses an expression to match a Request.
Namespace
Symfony\Component\HttpFoundation\RequestMatcherCode
public function matches(Request $request) : bool {
return $this->language
->evaluate($this->expression, [
'request' => $request,
'method' => $request->getMethod(),
'path' => rawurldecode($request->getPathInfo()),
'host' => $request->getHost(),
'ip' => $request->getClientIp(),
'attributes' => $request->attributes
->all(),
]);
}