We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d556a89 commit f75c693Copy full SHA for f75c693
Authentication/Token/AbstractToken.php
@@ -26,9 +26,9 @@
26
abstract class AbstractToken implements TokenInterface
27
{
28
private $user;
29
- private $roles;
30
- private $authenticated;
31
- private $attributes;
+ private $roles = array();
+ private $authenticated = false;
+ private $attributes = array();
32
33
/**
34
* Constructor.
@@ -39,10 +39,6 @@ abstract class AbstractToken implements TokenInterface
39
*/
40
public function __construct(array $roles = array())
41
42
- $this->authenticated = false;
43
- $this->attributes = array();
44
-
45
- $this->roles = array();
46
foreach ($roles as $role) {
47
if (is_string($role)) {
48
$role = new Role($role);
0 commit comments