Skip to content

Commit de250a8

Browse files
committed
minor symfony#43952 [SecurityBundle] Fix compat with symfony/security-core:^6 (chalasr)
This PR was merged into the 5.4 branch. Discussion ---------- [SecurityBundle] Fix compat with symfony/security-core:^6 | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Should fix https://github.com/symfony/symfony/runs/4120270080 (6.0 with high deps) Commits ------- 4728cf0 [SecurityBundle] Fix compat with symfony/security-core:^6
2 parents 63f5e27 + 4728cf0 commit de250a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
use Symfony\Component\PasswordHasher\Hasher\Pbkdf2PasswordHasher;
4040
use Symfony\Component\PasswordHasher\Hasher\PlaintextPasswordHasher;
4141
use Symfony\Component\PasswordHasher\Hasher\SodiumPasswordHasher;
42-
use Symfony\Component\Security\Core\Authorization\AccessDecisionManager;
4342
use Symfony\Component\Security\Core\Authorization\Strategy\AffirmativeStrategy;
4443
use Symfony\Component\Security\Core\Authorization\Strategy\ConsensusStrategy;
4544
use Symfony\Component\Security\Core\Authorization\Strategy\PriorityStrategy;
@@ -163,7 +162,7 @@ public function load(array $configs, ContainerBuilder $container)
163162
$container
164163
->getDefinition('security.access.decision_manager')
165164
->addArgument($this->createStrategyDefinition(
166-
$config['access_decision_manager']['strategy'] ?? AccessDecisionManager::STRATEGY_AFFIRMATIVE,
165+
$config['access_decision_manager']['strategy'] ?? MainConfiguration::STRATEGY_AFFIRMATIVE,
167166
$config['access_decision_manager']['allow_if_all_abstain'],
168167
$config['access_decision_manager']['allow_if_equal_granted_denied']
169168
));

0 commit comments

Comments
 (0)