Skip to content

Commit 3ca3de5

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: improve dx and document auth exception
2 parents 7121009 + 2ad08d5 commit 3ca3de5

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/UserBadge.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public function getUserIdentifier(): string
5555
return $this->userIdentifier;
5656
}
5757

58+
/**
59+
* @throws AuthenticationException when the user cannot be found
60+
*/
5861
public function getUser(): UserInterface
5962
{
6063
if (null === $this->user) {

src/Symfony/Component/Security/Http/Authenticator/Passport/Passport.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public function __construct(UserBadge $userBadge, CredentialsInterface $credenti
4545
}
4646
}
4747

48+
/**
49+
* {@inheritdoc}
50+
*/
4851
public function getUser(): UserInterface
4952
{
5053
if (null === $this->user) {

src/Symfony/Component/Security/Http/Authenticator/Passport/UserPassportInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Security\Http\Authenticator\Passport;
1313

14+
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1415
use Symfony\Component\Security\Core\User\UserInterface;
1516

1617
/**
@@ -22,5 +23,8 @@
2223
*/
2324
interface UserPassportInterface extends PassportInterface
2425
{
26+
/**
27+
* @throws AuthenticationException when the user cannot be found
28+
*/
2529
public function getUser(): UserInterface;
2630
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy