Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1774f4

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Security] alway use getUserIdentifier in InMemoryTokenProvider Update phpdoc to not reference removed classes [Security] Remove isAuthenticated and setAuthenticated token methods in tests
2 parents 7288b84 + 11adee9 commit d1774f4

File tree

5 files changed

+3
-17
lines changed

5 files changed

+3
-17
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use Symfony\Component\DependencyInjection\ContainerBuilder;
1717

1818
/**
19-
* AbstractFactory is the base class for all classes inheriting from
20-
* AbstractAuthenticationListener.
21-
*
2219
* @author Fabien Potencier <[email protected]>
2320
* @author Lukas Kahwe Smith <[email protected]>
2421
* @author Johannes M. Schmitt <[email protected]>

src/Symfony/Component/Security/Core/Authentication/RememberMe/InMemoryTokenProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function updateToken(string $series, #[\SensitiveParameter] string $token
3939

4040
$token = new PersistentToken(
4141
$this->tokens[$series]->getClass(),
42-
method_exists($this->tokens[$series], 'getUserIdentifier') ? $this->tokens[$series]->getUserIdentifier() : $this->tokens[$series]->getUsername(),
42+
$this->tokens[$series]->getUserIdentifier(),
4343
$series,
4444
$tokenValue,
4545
$lastUsed

src/Symfony/Component/Security/Http/Authentication/AuthenticationFailureHandlerInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
interface AuthenticationFailureHandlerInterface
2828
{
2929
/**
30-
* This is called when an interactive authentication attempt fails. This is
31-
* called by authentication listeners inheriting from
32-
* AbstractAuthenticationListener.
30+
* This is called when an interactive authentication attempt fails.
3331
*/
3432
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): Response;
3533
}

src/Symfony/Component/Security/Http/Firewall/LogoutListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function supports(Request $request): ?bool
6666
* validate the request.
6767
*
6868
* @throws LogoutException if the CSRF token is invalid
69-
* @throws \RuntimeException if the LogoutSuccessHandlerInterface instance does not return a response
69+
* @throws \RuntimeException if the LogoutEvent listener does not set a response
7070
*/
7171
public function authenticate(RequestEvent $event): void
7272
{

src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -557,15 +557,6 @@ public function getUserIdentifier(): string
557557
return $this->getUserIdentifier();
558558
}
559559

560-
public function isAuthenticated(): bool
561-
{
562-
return true;
563-
}
564-
565-
public function setAuthenticated(bool $isAuthenticated)
566-
{
567-
}
568-
569560
public function eraseCredentials(): void
570561
{
571562
}

0 commit comments

Comments
 (0)