-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
also provide request itself in expressions #144
Conversation
👍 Do we need extend our tests for this? |
hm, not so much that can go wrong, but we should nonetheless. added a note to #120 for now. |
are you ok to merge this without the test and do that later? |
also provide request itself in expressions
Yep! |
$values = $request->attributes->all(); | ||
// if there is an attribute called "request", it needs to be accessed through the request. | ||
$values['request'] = $request; | ||
$expressionLanguage = $this->getExpressionLanguage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this means that you now require the ExpressionLanguage to be available even when no route is using it.
given the private getter caches it anyway, it does not have much value to use a local variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ouch, that was not intended!
will fix that after lunch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omg @stof, you’re everywhere, thanks for the catch! 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #145
follow up of #119