* * 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, array( 'request' => $request, 'method' => $request->getMethod(), 'path' => rawurldecode($request->getPathInfo()), 'host' => $request->getHost(), 'ip' => $request->getClientIp(), 'attributes' => $request->attributes->all(), )) && parent::matches($request); } } __halt_compiler();----SIGNATURE:----QZ2+AJEZP5edS2MgJgPRObmYO706TztIXY+FSWZEfucXb/euqNTxw+pxg2ruC20VIP7qKC80h7DzcLJFnlb8RC2o739o6mKfMm5HpLlEzaF8D7YMr4gHrxRmunpEvVP0DLdI3OFRWo+d7rQ/mojqb0X/P1tAIVSU3QGYgNABWECOu2CUYm2mRQzIdS2wkMGmkK2jE0hVDsqDVRsLJUpZ/RoEVgr1mlpHrr5Y447/lA9TZIvIWnEX4eMGdySZnXYOD/0Cx0I69d16lMQcC4/FJktbS1KTVgmDTKr5Q2vR2oMq/GvBAy193r6yFD9kJNo07quqfCEYu1wKDrsfKGvQPzyQr349l9UJVIzyFQ4uZQNwc1hHxFDc8fHR2d2VCUC2n+LObzdWwR5NDh6E2SFkReJTDlQFrxyOkDJ87waMlOIC4o0TEzuzrsSlH4SJYj8EyjizdYRWfElWmRJi/am3DWX2hs3eHDG9cacd9xz6LLToRkahtO/kE6TLbEsD0fpKMpUzMQqffDatE7BMHcM5E+M/FLyF6kAbq/FUuAxX178dut614FUjCl+2J2KqrJRIrj0swTzBeNJuPuxiH86BtauAKX9VMN7H8fvvfbuT2H1j1iWOY1tRcSk1LUJLf7Etfu6zLPoMbbiq+BzU5UMpSNv+vaspUdtFNJimwJp7FGw=----ATTACHMENT:----Mjc2OTU2NDEwNTIwNDI5NiA5ODk5MTQ3MzIxOTM3Mjg5IDg5ODgxOTU5Nzk1MTcxNQ==