Skip to content

Commit

Permalink
[SecurityBundle] Add trust_resolver variable into expression
Browse files Browse the repository at this point in the history
| Q             | A
| ------------- | ---
| Bug fix?      | [yes]
| New feature?  | [no]
| BC breaks?    | [no]
| Deprecations? | [no]
| Tests pass?   | [yes]
| Fixed tickets | [#12224]
| License       | MIT
| Doc PR        | [-]
  • Loading branch information
zulus committed Oct 14, 2014
1 parent a27de3d commit 2822fdb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -619,7 +619,7 @@ private function createExpression($container, $expression)
->register($id, 'Symfony\Component\ExpressionLanguage\SerializedParsedExpression')
->setPublic(false)
->addArgument($expression)
->addArgument(serialize($this->getExpressionLanguage()->parse($expression, array('token', 'user', 'object', 'roles', 'request'))->getNodes()))
->addArgument(serialize($this->getExpressionLanguage()->parse($expression, array('token', 'user', 'object', 'roles', 'request', 'trust_resolver'))->getNodes()))
;

return $this->expressions[$id] = new Reference($id);
Expand Down

0 comments on commit 2822fdb

Please sign in to comment.