Skip to content

Commit a49fd38

Browse files
committed
[Security] Remove deprecated access decision code
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent edffac8 commit a49fd38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/DataCollector/SecurityDataCollectorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Bundle\SecurityBundle\DataCollector\SecurityDataCollector;
1616
use Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener;
17+
use Symfony\Bundle\SecurityBundle\DependencyInjection\MainConfiguration;
1718
use Symfony\Bundle\SecurityBundle\Security\FirewallConfig;
1819
use Symfony\Bundle\SecurityBundle\Security\FirewallMap;
1920
use Symfony\Component\EventDispatcher\EventDispatcher;
@@ -24,7 +25,6 @@
2425
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
2526
use Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken;
2627
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
27-
use Symfony\Component\Security\Core\Authorization\AccessDecisionManager;
2828
use Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager;
2929
use Symfony\Component\Security\Core\Authorization\Voter\TraceableVoter;
3030
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
@@ -228,7 +228,7 @@ public function providerCollectDecisionLog(): \Generator
228228
$decoratedVoter1 = new TraceableVoter($voter1, $eventDispatcher);
229229

230230
yield [
231-
AccessDecisionManager::STRATEGY_AFFIRMATIVE,
231+
MainConfiguration::STRATEGY_AFFIRMATIVE,
232232
[[
233233
'attributes' => ['view'],
234234
'object' => new \stdClass(),
@@ -252,7 +252,7 @@ public function providerCollectDecisionLog(): \Generator
252252
];
253253

254254
yield [
255-
AccessDecisionManager::STRATEGY_UNANIMOUS,
255+
MainConfiguration::STRATEGY_UNANIMOUS,
256256
[
257257
[
258258
'attributes' => ['view', 'edit'],

0 commit comments

Comments
 (0)