• Fabien Potencier's avatar
    feature #1165 Easier user access (fabpot) · a730a6de
    Fabien Potencier authored
    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
    a730a6de
Name
Last commit
Last update
bin Loading commit data...
doc Loading commit data...
src/Silex Loading commit data...
tests/Silex/Tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
README.rst Loading commit data...
composer.json Loading commit data...
phpunit.xml.dist Loading commit data...