This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/Security
Kris Wallsmith 41872cd40e [Security] added SecurityContextInterface::getUser()
This changes helps the common use case of fetching the current user and better complies with the Law of Demeter (http://en.wikipedia.org/wiki/Law_of_Demeter).

Before (still works):

    $token = $context->getToken();
    $user = $token ? $token->getUser() : null;

After:

    $user = $context->getUser();
2011-12-08 08:53:01 -08:00
..
Acl removed unused use statements 2011-11-24 07:16:14 +01:00
Core [Security] added SecurityContextInterface::getUser() 2011-12-08 08:53:01 -08:00
Http merged 2.0 2011-11-24 07:16:52 +01:00