/home/techb158/immovalet.com/vendor/symfony/http-foundation
NameSizeModeActions
Exception/-0755rm
File/-0755rm
RateLimiter/-0755rm
Session/-0755rm
Test/-0755rm
AcceptHeader.php36390644editdlrm
AcceptHeaderItem.php34080644editdlrm
BinaryFileResponse.php124950644editdlrm
CHANGELOG.md153390644editdlrm
composer.json11220644editdlrm
Cookie.php116490644editdlrm
ExpressionRequestMatcher.php13540644editdlrm
FileBag.php39790644editdlrm
HeaderBag.php73790644editdlrm
HeaderUtils.php94330644editdlrm
InputBag.php41360644editdlrm
IpUtils.php55620644editdlrm
JsonResponse.php75890644editdlrm
LICENSE10650644editdlrm
ParameterBag.php60290644editdlrm
README.md5260644editdlrm
RedirectResponse.php30720644editdlrm
Request.php684290644editdlrm
RequestMatcher.php48950644editdlrm
RequestMatcherInterface.php6870644editdlrm
RequestStack.php31500644editdlrm
Response.php372720644editdlrm
ResponseHeaderBag.php79770644editdlrm
ServerBag.php40040644editdlrm
StreamedResponse.php31370644editdlrm
UrlHelper.php30940644editdlrm
Edit: /home/techb158/immovalet.com/vendor/symfony/http-foundation/ExpressionRequestMatcher.php (1354B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpFoundation; use Symfony\Component\ExpressionLanguage\ExpressionLanguage; /** * ExpressionRequestMatcher uses an expression to match a Request. * * @author Fabien Potencier */ class ExpressionRequestMatcher extends RequestMatcher { private $language; private $expression; public function setExpression(ExpressionLanguage $language, $expression) { $this->language = $language; $this->expression = $expression; } public function matches(Request $request) { if (!$this->language) { throw new \LogicException('Unable to match the request as the expression language is not available.'); } 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(), ]) && parent::matches($request); } }