8000 Revert "bug #25151 [FrameworkBundle] Automatically enable the CSRF pr… · symfony/symfony@903f120 · GitHub
[go: up one dir, main page]

Skip to content

Commit 903f120

Browse files
committed
Revert "bug #25151 [FrameworkBundle] Automatically enable the CSRF protection if CSRF manager exists (sroze)"
This reverts commit d5f0428, reversing changes made to e52825e.
1 parent 8013b4b commit 903f120

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use Symfony\Component\Form\Form;
2222
use Symfony\Component\Lock\Lock;
2323
use Symfony\Component\Lock\Store\SemaphoreStore;
24-
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
2524
use Symfony\Component\Serializer\Serializer;
2625
use Symfony\Component\Translation\Translator;
2726
use Symfony\Component\Validator\Validation;
@@ -143,7 +142,7 @@ private function addCsrfSection(ArrayNodeDefinition $rootNode)
143142
$rootNode
144143
->children()
145144
->arrayNode('csrf_protection')
146-
->{!class_exists(FullStack::class) && class_exists(CsrfTokenManagerInterface::class) ? 'canBeDisabled' : 'canBeEnabled'}()
145+
->canBeEnabled()
147146
->end()
148147
->end()
149148
;

0 commit comments

Comments
 (0)
0