* * 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:----jqfXp+4oozyvAXI/lpJLICdO4g8MnxKxHvlB1VuNKhZxlzC20DI3HmvMM7+eJhxOI+LNQQDmCqmrWnwx8yBg4LU+e7lxIDQR2UfZRtkEpGkXADQGfM4X2acugyN1KiqFpHeOxAZuMhMgTXKyuBmBnF4z2V1O/2W+5zCKEjCDT6LVvDERJnYga1qZtgUj91lWSm+4Bn2kdpF6Dkb/eeKL3usZg4f/KLuL75wF5IyyZXph4nDB11WGiPK95XM3GvJi1ycEL2pJzFR2CqMk0UA2VPGpInY5R3pdIKU1/ttyVB88nKoFPZiT9LLFidDy8eRvNZKKs8VRJlmNWr8YFTpMaVgR5+feY/Bdb+QKTx+cURF9cVwjz2q0oeC0eqif3OnOBi+LzZ834MjSf9MkB3Zqi/PAOAYUxVWoVTSdwmKC9inA1wN3KHtgnH9J4gtgye+VAg/zQc997HK3LdIMmlaLAIvw2Fagcd5WtUe5D7ahwVy/eBCIWCJ0DzFSbM05CH+e7k7qwwnA14QnI1FkorLX4xui/j5xx0UmunmMThDm/yfE0CJdek8BcJ+vPP1SxKqdmXxSzRmSkQ6k4BfrHUDcK0MHfJIpp9E4f6y60s8hT1GQzc/H2n+ybjhqn4fSulCTW0fMAwiyKpbUYrplcdgI8xRp7gYJRoojxDoRWSN4p6M=----ATTACHMENT:----NjEwNDU5MzI3MTg5MzUxMyAxMDYyNDY4MTI4MDY3NTgyIDgzNzY2ODM2Njk1MzY4Njc=