Skip to content

Commit 438de43

Browse files
author
Robin Chalas
committed
[Security] Deprecate simple_preauth and simple_form in favor of Guard
1 parent a6fdb60 commit 438de43

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Authentication/Provider/SimpleAuthenticationProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@
1919
use Symfony\Component\Security\Core\User\UserInterface;
2020
use Symfony\Component\Security\Core\User\UserProviderInterface;
2121

22+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.2, use Guard instead.', SimpleAuthenticationProvider::class), E_USER_DEPRECATED);
23+
2224
/**
2325
* @author Jordi Boggiano <j.boggiano@seld.be>
26+
*
27+
* @deprecated since Symfony 4.2, use Guard instead.
2428
*/
2529
class SimpleAuthenticationProvider implements AuthenticationProviderInterface
2630
{

Authentication/SimpleAuthenticatorInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
/**
1818
* @author Jordi Boggiano <j.boggiano@seld.be>
19+
*
20+
* @deprecated since Symfony 4.2, use Guard instead.
1921
*/
2022
interface SimpleAuthenticatorInterface
2123
{

Tests/Authentication/Provider/SimpleAuthenticationProviderTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
use Symfony\Component\Security\Core\Exception\LockedException;
1818
use Symfony\Component\Security\Core\User\UserChecker;
1919

20+
/**
21+
* @group legacy
22+
*/
2023
class SimpleAuthenticationProviderTest extends TestCase
2124
{
2225
/**

0 commit comments

Comments
 (0)