File tree Expand file tree Collapse file tree 9 files changed +14
-36
lines changed Expand file tree Collapse file tree 9 files changed +14
-36
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public function getTokenValue();
48
48
public function getLastUsed ();
49
49
50
50
/**
51
- * Returns the identifier used to authenticate (e.g. their e-mailaddress or username).
51
+ * Returns the identifier used to authenticate (e.g. their email address or username).
52
52
*/
53
53
public function getUserIdentifier (): string ;
54
54
}
Original file line number Diff line number Diff line change @@ -121,41 +121,31 @@ public function __unserialize(array $data): void
121
121
}
122
122
123
123
/**
124
- * Returns the token attributes.
125
- *
126
- * @return array
124
+ * {@inheritdoc}
127
125
*/
128
126
public function getAttributes ()
129
127
{
130
128
return $ this ->attributes ;
131
129
}
132
130
133
131
/**
134
- * Sets the token attributes.
135
- *
136
- * @param array $attributes The token attributes
132
+ * {@inheritdoc}
137
133
*/
138
134
public function setAttributes (array $ attributes )
139
135
{
140
136
$ this ->attributes = $ attributes ;
141
137
}
142
138
143
139
/**
144
- * Returns true if the attribute exists.
145
- *
146
- * @return bool
140
+ * {@inheritdoc}
147
141
*/
148
142
public function hasAttribute (string $ name )
149
143
{
150
144
return \array_key_exists ($ name , $ this ->attributes );
151
145
}
152
146
153
147
/**
154
- * Returns an attribute value.
155
- *
156
- * @return mixed
157
- *
158
- * @throws \InvalidArgumentException When attribute doesn't exist for this token
148
+ * {@inheritdoc}
159
149
*/
160
150
public function getAttribute (string $ name )
161
151
{
@@ -166,6 +156,9 @@ public function getAttribute(string $name)
166
156
return $ this ->attributes [$ name ];
167
157
}
168
158
159
+ /**
160
+ * {@inheritdoc}
161
+ */
169
162
public function setAttribute (string $ name , mixed $ value )
170
163
{
171
164
$ this ->attributes [$ name ] = $ value ;
Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ public function getFirewallName(): string
52
52
}
53
53
54
54
/**
55
- * Returns the secret.
56
- *
57
55
* @return string
58
56
*/
59
57
public function getSecret ()
Original file line number Diff line number Diff line change 16
16
/**
17
17
* TokenInterface is the interface for the user authentication information.
18
18
*
19
- * @method string getUserIdentifier() returns the user identifier used during authentication (e.g. a user's e-mailaddress or username)
19
+ * @method string getUserIdentifier() returns the user identifier used during authentication (e.g. a user's email address or username)
20
20
*
21
21
* @author Fabien Potencier <[email protected] >
22
22
* @author Johannes M. Schmitt <[email protected] >
@@ -59,38 +59,27 @@ public function setUser(UserInterface $user);
59
59
public function eraseCredentials ();
60
60
61
61
/**
62
- * Returns the token attributes.
63
- *
64
62
* @return array
65
63
*/
66
64
public function getAttributes ();
67
65
68
66
/**
69
- * Sets the token attributes.
70
- *
71
67
* @param array $attributes The token attributes
72
68
*/
73
69
public function setAttributes (array $ attributes );
74
70
75
71
/**
76
- * Returns true if the attribute exists.
77
- *
78
72
* @return bool
79
73
*/
80
74
public function hasAttribute (string $ name );
81
75
82
76
/**
83
- * Returns an attribute value.
84
- *
85
77
* @return mixed
86
78
*
87
79
* @throws \InvalidArgumentException When attribute doesn't exist for this token
88
80
*/
89
81
public function getAttribute (string $ name );
90
82
91
- /**
92
- * Sets an attribute.
93
- */
94
83
public function setAttribute (string $ name , mixed $ value );
95
84
96
85
/**
Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ class AuthenticationException extends RuntimeException
24
24
private $ token ;
25
25
26
26
/**
27
- * Get the token.
28
- *
29
27
* @return TokenInterface|null
30
28
*/
31
29
public function getToken ()
Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ public function getMessageKey()
30
30
}
31
31
32
32
/**
33
- * Get the user identifier (e.g. username or e-mailaddress ).
33
+ * Get the user identifier (e.g. username or email address ).
34
34
*/
35
35
public function getUserIdentifier (): ?string
36
36
{
37
37
return $ this ->identifier ;
38
38
}
39
39
40
40
/**
41
- * Set the user identifier (e.g. username or e-mailaddress ).
41
+ * Set the user identifier (e.g. username or email address ).
42
42
*/
43
43
public function setUserIdentifier (string $ identifier ): void
44
44
{
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function getPassword(): ?string
60
60
}
61
61
62
62
/**
63
- * Returns the identifier for this user (e.g. its username or e-mailaddress ).
63
+ * Returns the identifier for this user (e.g. its username or email address ).
64
64
*/
65
65
public function getUserIdentifier (): string
66
66
{
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function getRoles();
55
55
public function eraseCredentials ();
56
56
57
57
/**
58
- * Returns the identifier for this user (e.g. its username or e-mailaddress ).
58
+ * Returns the identifier for this user (e.g. its username or email address ).
59
59
*/
60
60
public function getUserIdentifier (): string ;
61
61
}
Original file line number Diff line number Diff line change 18
18
* Represents a class that loads UserInterface objects from some source for the authentication system.
19
19
*
20
20
* In a typical authentication configuration, a user identifier (e.g. a
21
- * username or e-mailaddress ) credential enters the system (via form login, or
21
+ * username or email address ) credential enters the system (via form login, or
22
22
* any method). The user provider that is configured with that authentication
23
23
* method is asked to load the UserInterface object for the given identifier (via
24
24
* loadUserByIdentifier) so that the rest of the process can continue.
You can’t perform that action at this time.
0 commit comments