summaryrefslogtreecommitdiffstats
path: root/Core
diff options
context:
space:
mode:
authorTobias Schultze <webmaster@tubo-world.de>2013-11-10 18:06:47 +0100
committerTobias Schultze <webmaster@tubo-world.de>2013-11-11 19:40:07 +0100
commit559a3f685176f82ff0bd8b90a392dcd21c462f39 (patch)
treefffc7b6b33e08dade30c8ae4c45de8c5364f7d9c /Core
parentcd107f089dc31f7d47c77149d1de8baabaa668d8 (diff)
downloadsymfony-security-559a3f685176f82ff0bd8b90a392dcd21c462f39.zip
symfony-security-559a3f685176f82ff0bd8b90a392dcd21c462f39.tar.gz
symfony-security-559a3f685176f82ff0bd8b90a392dcd21c462f39.tar.bz2
unify constructor initialization style throughout symfony
Diffstat (limited to 'Core')
-rw-r--r--Core/Authentication/Token/AbstractToken.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/Core/Authentication/Token/AbstractToken.php b/Core/Authentication/Token/AbstractToken.php
index c532532..e62f73c 100644
--- a/Core/Authentication/Token/AbstractToken.php
+++ b/Core/Authentication/Token/AbstractToken.php
@@ -26,9 +26,9 @@ use Symfony\Component\Security\Core\User\EquatableInterface;
abstract class AbstractToken implements TokenInterface
{
private $user;
- private $roles;
- private $authenticated;
- private $attributes;
+ private $roles = array();
+ private $authenticated = false;
+ private $attributes = array();
/**
* Constructor.
@@ -39,10 +39,6 @@ abstract class AbstractToken implements TokenInterface
*/
public function __construct(array $roles = array())
{
- $this->authenticated = false;
- $this->attributes = array();
-
- $this->roles = array();
foreach ($roles as $role) {
if (is_string($role)) {
$role = new Role($role);