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/Core
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
..
Authentication merged 2.0 2011-11-24 07:16:52 +01:00
Authorization [Security] various changes, see below 2011-03-10 10:25:32 +01:00
Encoder [Tests] Use proper phpunit assertion functions: "assertTrue", "assertFalse", "assertNull" 2011-08-25 15:41:15 +02:00
Role replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
User [Security] added a unit test for previous merge 2011-08-23 08:52:50 +02:00
SecurityContextTest.php [Security] added SecurityContextInterface::getUser() 2011-12-08 08:53:01 -08:00