14 use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
26 public function setExpression(ExpressionLanguage $language, $expression)
28 $this->language = $language;
29 $this->expression = $expression;
34 if (!$this->language) {
35 throw new \LogicException(
'Unable to match the request as the expression language is not available.');
38 return $this->language->evaluate($this->expression, array(
39 'request' => $request,
44 'attributes' => $request->attributes->all(),
45 )) && parent::matches($request);