Skip to content

Commit 2ef9d3f

Browse files
committed
[Security] Fix some phpdoc
1 parent 6e456f2 commit 2ef9d3f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Authenticator/Passport/Credentials/PasswordCredentials.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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 <[email protected]>

Authenticator/Passport/Passport.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
use 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 <[email protected]>
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

0 commit comments

Comments
 (0)