/home/techb158/dev.balacoffee.com/vendor/symfony/http-foundation
NameSizeModeActions
Exception/-0755rm
File/-0755rm
RateLimiter/-0755rm
Session/-0755rm
Test/-0755rm
AcceptHeader.php36390644editdlrm
AcceptHeaderItem.php34080644editdlrm
BinaryFileResponse.php139620644editdlrm
CHANGELOG.md156840644editdlrm
composer.json12950644editdlrm
Cookie.php116190644editdlrm
ExpressionRequestMatcher.php13540644editdlrm
FileBag.php39250644editdlrm
HeaderBag.php72080644editdlrm
HeaderUtils.php91310644editdlrm
InputBag.php41390644editdlrm
IpUtils.php67790644editdlrm
JsonResponse.php75890644editdlrm
LICENSE10680644editdlrm
ParameterBag.php59130644editdlrm
README.md9400644editdlrm
RedirectResponse.php30610644editdlrm
Request.php687570644editdlrm
RequestMatcher.php49010644editdlrm
RequestMatcherInterface.php6420644editdlrm
RequestStack.php31500644editdlrm
Response.php380840644editdlrm
ResponseHeaderBag.php79570644editdlrm
ServerBag.php40140644editdlrm
StreamedResponse.php31370644editdlrm
UrlHelper.php36810644editdlrm
Edit: /home/techb158/dev.balacoffee.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); } }