Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-foundation/ExpressionRequestMatcher.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
33 { | 33 { |
34 if (!$this->language) { | 34 if (!$this->language) { |
35 throw new \LogicException('Unable to match the request as the expression language is not available.'); | 35 throw new \LogicException('Unable to match the request as the expression language is not available.'); |
36 } | 36 } |
37 | 37 |
38 return $this->language->evaluate($this->expression, array( | 38 return $this->language->evaluate($this->expression, [ |
39 'request' => $request, | 39 'request' => $request, |
40 'method' => $request->getMethod(), | 40 'method' => $request->getMethod(), |
41 'path' => rawurldecode($request->getPathInfo()), | 41 'path' => rawurldecode($request->getPathInfo()), |
42 'host' => $request->getHost(), | 42 'host' => $request->getHost(), |
43 'ip' => $request->getClientIp(), | 43 'ip' => $request->getClientIp(), |
44 'attributes' => $request->attributes->all(), | 44 'attributes' => $request->attributes->all(), |
45 )) && parent::matches($request); | 45 ]) && parent::matches($request); |
46 } | 46 } |
47 } | 47 } |