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

Commit b7409ef

Browse files
[2.6] cleanup deprecated uses
1 parent 495d07a commit b7409ef

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

Core/SecurityContext.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ public function __construct($tokenStorage, $authorizationChecker, $alwaysAuthent
7070
}
7171

7272
/**
73-
* @deprecated Deprecated since version 2.6, to be removed in 3.0. Use TokenStorageInterface::getToken() instead.
74-
*
7573
* {@inheritdoc}
7674
*/
7775
public function getToken()
@@ -80,8 +78,6 @@ public function getToken()
8078
}
8179

8280
/**
83-
* @deprecated Deprecated since version 2.6, to be removed in 3.0. Use TokenStorageInterface::setToken() instead.
84-
*
8581
* {@inheritdoc}
8682
*/
8783
public function setToken(TokenInterface $token = null)
@@ -90,8 +86,6 @@ public function setToken(TokenInterface $token = null)
9086
}
9187

9288
/**
93-
* @deprecated Deprecated since version 2.6, to be removed in 3.0. Use AuthorizationCheckerInterface::isGranted() instead.
94-
*
9589
* {@inheritdoc}
9690
*/
9791
public function isGranted($attributes, $object = null)

Tests/Core/SecurityContextInterfaceTest.php renamed to Tests/Core/LegacySecurityContextInterfaceTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
use Symfony\Component\Security\Core\SecurityContextInterface;
1515
use Symfony\Component\Security\Core\Security;
1616

17-
class SecurityContextInterfaceTest extends \PHPUnit_Framework_TestCase
17+
class LegacySecurityContextInterfaceTest extends \PHPUnit_Framework_TestCase
1818
{
1919
/**
2020
* Test if the BC Layer is working as intended
21-
*
22-
* @deprecated Deprecated since version 2.6, to be removed in 3.0.
2321
*/
2422
public function testConstantSync()
2523
{
24+
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
25+
2626
$this->assertSame(Security::ACCESS_DENIED_ERROR, SecurityContextInterface::ACCESS_DENIED_ERROR);
2727
$this->assertSame(Security::AUTHENTICATION_ERROR, SecurityContextInterface::AUTHENTICATION_ERROR);
2828
$this->assertSame(Security::LAST_USERNAME, SecurityContextInterface::LAST_USERNAME);

0 commit comments

Comments
 (0)