* * 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:----Xjlny317ppC5OYX4zTZmgNRr00BC99MhOVaSxGkhluErldrd84oMLQ3KdvP2/wRiwBAfCB8omzpFMGfGxdDjjydrUT7BzwgRuX2JAGmLBTsTKvso2gBEojuEIuYEyUkMxtPEY4RLe5jEbOC0n9hsXzvIlWAdZcmSV6pFK+GNxyK/Fjc2zzimslQ5/dxyWICYaFy9GfxC3KlBhyadSC2ghe+l5iKDhKhHn5oopKLYKZAldfGr3/abYFzeIKGhv8vi/blComBqE6cBOQBkFXHyJIh4LAk+M/5xaVxesefhwor7uKSZSs7G7RKLaiX7P1tlo+x5TCCw7w5vgG+7GPkkS0wKmf6pD3zsCfRPU5ZAMKxYEW/JGe2dVUtLRzVZKs/m74mO9aOuPjUC61jcsefCOwCSRSdV7ycw7KhPHlHnQS/wwoKCrH47qYUGBI4HzgoQM4fDFEzpZznJ/lv+saod9PqXlp2mYIXmP+NkuGGRJqv/ELz7ZW3Aph8ekZrIu3XPPqOtEILc1hi33c/0DTnjUuU7PYcsBgqfUFHF0US6rMJMd5tC2vkNCmzMOfprAyfaNgVXkHQQxT/wlQlm/O6c5W1iUD+/wfcApK7VsFRY83lXyXVeY3F6CVcKVQ/7zCWJpE+vJd0OC5cmjcWjeAxuq90axh8My2kaSRulFslZYBc=----ATTACHMENT:----NDI5NzQwOTgwMDc2MTI4MCA5MjE5ODczNzQ3NjIyNjMyIDQxMjk5NjczODIzNTY3MQ==