Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 09ee344

Browse filesBrowse files
[Security] Remove deprecated interfaces
1 parent eca45b7 commit 09ee344
Copy full SHA for 09ee344
Expand file treeCollapse file tree

19 files changed

+17
-543
lines changed

‎src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php
-18Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,6 @@ public function testCollectWhenAuthenticationTokenIsNull()
4040
$this->assertEmpty($collector->getUser());
4141
}
4242

43-
/**
44-
* @group legacy
45-
*/
46-
public function testLegacyCollectWhenAuthenticationTokenIsNull()
47-
{
48-
$tokenStorage = $this->getMock('Symfony\Component\Security\Core\SecurityContextInterface');
49-
$collector = new SecurityDataCollector($tokenStorage, $this->getRoleHierarchy());
50-
$collector->collect($this->getRequest(), $this->getResponse());
51-
52-
$this->assertTrue($collector->isEnabled());
53-
$this->assertFalse($collector->isAuthenticated());
54-
$this->assertNull($collector->getTokenClass());
55-
$this->assertTrue($collector->supportsRoleHierarchy());
56-
$this->assertCount(0, $collector->getRoles());
57-
$this->assertCount(0, $collector->getInheritedRoles());
58-
$this->assertEmpty($collector->getUser());
59-
}
60-
6143
/** @dataProvider provideRoles */
6244
public function testCollectAuthenticationTokenAndRoles(array $roles, array $normalizedRoles, array $inheritedRoles)
6345
{

‎src/Symfony/Component/Security/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
3.0.0
5+
-----
6+
7+
* removed all deprecated codes from 2.x versions
8+
49
2.8.0
510
-----
611

‎src/Symfony/Component/Security/Core/Authentication/SimpleFormAuthenticatorInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authentication/SimpleFormAuthenticatorInterface.php
-24Lines changed: 0 additions & 24 deletions
This file was deleted.

‎src/Symfony/Component/Security/Core/Authentication/SimplePreAuthenticatorInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authentication/SimplePreAuthenticatorInterface.php
-24Lines changed: 0 additions & 24 deletions
This file was deleted.

‎src/Symfony/Component/Security/Core/Authentication/Token/AnonymousToken.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authentication/Token/AnonymousToken.php
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,6 @@ public function getCredentials()
4646
return '';
4747
}
4848

49-
/**
50-
* @deprecated Since version 2.8, to be removed in 3.0. Use getSecret() instead.
51-
*/
52-
public function getKey()
53-
{
54-
@trigger_error(__method__.'() is deprecated since version 2.8 and will be removed in 3.0. Use getSecret() instead.', E_USER_DEPRECATED);
55-
56-
return $this->getSecret();
57-
}
58-
5949
/**
6050
* Returns the secret.
6151
*

‎src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,6 @@ public function getProviderKey()
7373
return $this->providerKey;
7474
}
7575

76-
/**
77-
* @deprecated Since version 2.8, to be removed in 3.0. Use getSecret() instead.
78-
*/
79-
public function getKey()
80-
{
81-
@trigger_error(__method__.'() is deprecated since version 2.8 and will be removed in 3.0. Use getSecret() instead.', E_USER_DEPRECATED);
82-
83-
return $this->getSecret();
84-
}
85-
8676
/**
8777
* Returns the secret.
8878
*

‎src/Symfony/Component/Security/Core/SecurityContext.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/SecurityContext.php
-104Lines changed: 0 additions & 104 deletions
This file was deleted.

‎src/Symfony/Component/Security/Core/SecurityContextInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/SecurityContextInterface.php
-29Lines changed: 0 additions & 29 deletions
This file was deleted.

‎src/Symfony/Component/Security/Core/Tests/LegacySecurityContextTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Tests/LegacySecurityContextTest.php
-122Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.