Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 033a767

Browse files
author
Hugo Hamon
committed
Normalized @deprecated annotations.
1 parent db4c3a3 commit 033a767

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Core/SecurityContext.php

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

1212
namespace Symfony\Component\Security\Core;
1313

14-
trigger_error('The '.__NAMESPACE__.'\SecurityContext class is deprecated since version 2.6 and will be removed in 3.0. Use the Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface and Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface implementation to check for authentication and authorization.', E_USER_DEPRECATED);
15-
1614
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
1715
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
1816
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
@@ -28,7 +26,7 @@
2826
*
2927
* @author Fabien Potencier <[email protected]>
3028
* @author Johannes M. Schmitt <[email protected]>
31-
* @deprecated Deprecated since version 2.6, to be removed in 3.0.
29+
* @deprecated since version 2.6, to be removed in 3.0.
3230
*/
3331
class SecurityContext implements SecurityContextInterface
3432
{
@@ -72,6 +70,8 @@ public function __construct($tokenStorage, $authorizationChecker, $alwaysAuthent
7270
}
7371

7472
/**
73+
* @deprecated since version 2.6, to be removed in 3.0. Use TokenStorageInterface::getToken() instead.
74+
*
7575
* {@inheritdoc}
7676
*/
7777
public function getToken()
@@ -82,6 +82,8 @@ public function getToken()
8282
}
8383

8484
/**
85+
* @deprecated since version 2.6, to be removed in 3.0. Use TokenStorageInterface::setToken() instead.
86+
*
8587
* {@inheritdoc}
8688
*/
8789
public function setToken(TokenInterface $token = null)
@@ -92,6 +94,8 @@ public function setToken(TokenInterface $token = null)
9294
}
9395

9496
/**
97+
* @deprecated since version 2.6, to be removed in 3.0. Use AuthorizationCheckerInterface::isGranted() instead.
98+
*
9599
* {@inheritdoc}
96100
*/
97101
public function isGranted($attributes, $object = null)

0 commit comments

Comments
 (0)