SonataAdminBundle
SonataAdminBundle copied to clipboard
Allow to use symfony/expression in security attributes
Subject
Allow to use symfony expressions in security attributes.
As of symfony 4.4 (https://symfony.com/doc/4.4/security/expressions.html) it is possible to use expressions (not only strings) for attributes.
I am targeting this branch, because i think that is a small bc break but if you think that it needs to go into 5.x i can rebase it.
I did not add tests or documentation because I want to see if there is interest in this PR, if yes i will provide tests and documentation.
Changelog
### Changed
- Security attributes can be string or symfony expression language expressions
To do
- [ ] Update the tests;
- [ ] Update the documentation;
- [ ] Add an upgrade note.
that is great to hear, i will update/rebase the PR soon
I plan to release 4.16 soon. If you have time to update your PR to be on it ;)
im sorry if i did not manage to finalize this PR. :(
thanks for the great work with sonata!!
im sorry if i did not manage to finalize this PR. :(
thanks for the great work with sonata!!
No problem.
You had Update the documentation;
in your todo but I didn't find doc to update.
If you want to add some, you're welcome.