We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2371e5 commit 172b448Copy full SHA for 172b448
DependencyInjection/Configuration.php
@@ -21,6 +21,7 @@
21
use Symfony\Component\Form\Form;
22
use Symfony\Component\Lock\Lock;
23
use Symfony\Component\Lock\Store\SemaphoreStore;
24
+use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
25
use Symfony\Component\Serializer\Serializer;
26
use Symfony\Component\Translation\Translator;
27
use Symfony\Component\Validator\Validation;
@@ -142,7 +143,7 @@ private function addCsrfSection(ArrayNodeDefinition $rootNode)
142
143
$rootNode
144
->children()
145
->arrayNode('csrf_protection')
- ->canBeEnabled()
146
+ ->{!class_exists(FullStack::class) && class_exists(CsrfTokenManagerInterface::class) ? 'canBeDisabled' : 'canBeEnabled'}()
147
->end()
148
149
;
0 commit comments