File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 16
16
/**
17
17
* Implements password credentials.
18
18
*
19
- * These plaintext passwords are checked by the UserPasswordEncoder during
19
+ * These plaintext passwords are checked by the UserPasswordHasher during
20
20
* authentication.
21
21
*
22
22
* @author Wouter de Jong <[email protected] >
Original file line number Diff line number Diff line change 17
17
use Symfony \Component \Security \Http \Authenticator \Passport \Credentials \CredentialsInterface ;
18
18
19
19
/**
20
- * The default implementation for passports.
20
+ * A Passport contains all security-related information that needs to be
21
+ * validated during authentication.
22
+ *
23
+ * A passport badge can be used to add any additional information to the
24
+ * passport.
21
25
*
22
26
* @author Wouter de Jong <[email protected] >
23
27
*/
@@ -59,6 +63,12 @@ public function getUser(): UserInterface
59
63
}
60
64
61
65
/**
66
+ * Adds a new security badge.
67
+ *
68
+ * A passport can hold only one instance of the same security badge.
69
+ * This method replaces the current badge if it is already set on this
70
+ * passport.
71
+ *
62
72
* @return $this
63
73
*/
64
74
public function addBadge (BadgeInterface $ badge ): PassportInterface
You can’t perform that action at this time.
0 commit comments