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 1616/**
1717 * Implements password credentials.
1818 *
19- * These plaintext passwords are checked by the UserPasswordEncoder during
19+ * These plaintext passwords are checked by the UserPasswordHasher during
2020 * authentication.
2121 *
2222 * @author Wouter de Jong <wouter@wouterj.nl>
Original file line number Diff line number Diff line change 1717use Symfony \Component \Security \Http \Authenticator \Passport \Credentials \CredentialsInterface ;
1818
1919/**
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.
2125 *
2226 * @author Wouter de Jong <wouter@wouterj.nl>
2327 */
@@ -59,6 +63,12 @@ public function getUser(): UserInterface
5963 }
6064
6165 /**
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+ *
6272 * @return $this
6373 */
6474 public function addBadge (BadgeInterface $ badge ): PassportInterface
You can’t perform that action at this time.
0 commit comments