feature #1165 Easier user access (fabpot)
This PR was merged into the 1.3 branch. Discussion ---------- Easier user access In Silex 1.3, it's "harder" to get the user from the security layer as the `security` service has been deprecated. The code is already available in the security trait, but if you are not using it, you need to use a somewhat "complex" expression in templates to access it (see #1152) This PR moves the code from the trait to the security service to make it available to everyone. One question though: can we deprecate the trait `user()` function? It is not useful anymore after this PR. Commits ------- 87dc8570 made it easier to get the user from the app
Showing
Please register or sign in to comment