Silex/Symfony Security Firewall Access user token outside the secured area
问题 I use Silex and the SecurityProvider, my firewall : $app->register(new Silex\Provider\SecurityServiceProvider(), array( 'security.firewalls' => array( 'user' => array( 'pattern' => '^/user/', 'form' => array( 'login_path' => '/connexion', 'check_path' => '/user/login_check', 'default_target_path' => 'homepage_user' ), 'logout' => array('logout_path' => '/user/deconnexion') ... ) ) )); It works ! But I didn't find any way to access to the user object in the template, the symfony synthax doesn