Skip to content

Commit 758196d

Browse files
committed
Move the new Security helper to the root of SecurityBundle
1 parent 449814e commit 758196d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CHANGELOG
44
6.2
55
---
66

7-
* Deprecate the `Security` class, use `Symfony\Bundle\SecurityBundle\Security\Security` instead
7+
* Deprecate the `Security` class, use `Symfony\Bundle\SecurityBundle\Security` instead
88
* Change the signature of `TokenStorageInterface::setToken()` to `setToken(?TokenInterface $token)`
99
* Deprecate calling `TokenStorage::setToken()` without arguments
1010
* Add a `ChainUserChecker` to allow calling multiple user checkers for a firewall

Security.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,34 @@
1212
namespace Symfony\Component\Security\Core;
1313

1414
use Psr\Container\ContainerInterface;
15-
use Symfony\Bundle\SecurityBundle\Security\Security as NewSecurityHelper;
15+
use Symfony\Bundle\SecurityBundle\Security as NewSecurityHelper;
1616
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1717
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
1818
use Symfony\Component\Security\Core\User\UserInterface;
1919

2020
/**
2121
* Helper class for commonly-needed security tasks.
2222
*
23-
* @deprecated since Symfony 6.2, use \Symfony\Bundle\SecurityBundle\Security\Security instead
23+
* @deprecated since Symfony 6.2, use \Symfony\Bundle\SecurityBundle\Security instead
2424
*/
2525
class Security implements AuthorizationCheckerInterface
2626
{
2727
/**
28-
* @deprecated since Symfony 6.2, use \Symfony\Bundle\SecurityBundle\Security\Security::ACCESS_DENIED_ERROR instead
28+
* @deprecated since Symfony 6.2, use \Symfony\Bundle\SecurityBundle\Security::ACCESS_DENIED_ERROR instead
2929
*
3030
* In 7.0, move this constant to the NewSecurityHelper class and make it reference SecurityRequestAttributes:ACCESS_DENIED_ERROR.
3131
*/
3232
public const ACCESS_DENIED_ERROR = '_security.403_error';
3333

3434
/**
35-
* @deprecated since Symfony 6.2, use \Symfony\Bundle\SecurityBundle\Security\Security::AUTHENTICATION_ERROR instead
35+
* @deprecated since Symfony 6.2, use \Symfony\Bundle\SecurityBundle\Security::AUTHENTICATION_ERROR instead
3636
*
3737
* In 7.0, move this constant to the NewSecurityHelper class and make it reference SecurityRequestAttributes:AUTHENTICATION_ERROR.
3838
*/
3939
public const AUTHENTICATION_ERROR = '_security.last_error';
4040

4141
/**
42-
* @deprecated since Symfony 6.2, use \Symfony\Bundle\SecurityBundle\Security\Security::LAST_USERNAME instead
42+
* @deprecated since Symfony 6.2, use \Symfony\Bundle\SecurityBundle\Security::LAST_USERNAME instead
4343
*
4444
* In 7.0, move this constant to the NewSecurityHelper class and make it reference SecurityRequestAttributes:LAST_USERNAME.
4545
*/

0 commit comments

Comments
 (0)