File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Symfony/Bundle/FrameworkBundle/DependencyInjection Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 21
21
use Symfony \Component \Form \Form ;
22
22
use Symfony \Component \Lock \Lock ;
23
23
use Symfony \Component \Lock \Store \SemaphoreStore ;
24
+ use Symfony \Component \Security \Csrf \CsrfTokenManagerInterface ;
24
25
use Symfony \Component \Serializer \Serializer ;
25
26
use Symfony \Component \Translation \Translator ;
26
27
use Symfony \Component \Validator \Validation ;
@@ -142,7 +143,7 @@ private function addCsrfSection(ArrayNodeDefinition $rootNode)
142
143
$ rootNode
143
144
->children ()
144
145
->arrayNode ('csrf_protection ' )
145
- ->canBeEnabled ()
146
+ ->{! class_exists (FullStack::class) && class_exists (CsrfTokenManagerInterface::class) ? ' canBeDisabled ' : ' canBeEnabled ' } ()
146
147
->end ()
147
148
->end ()
148
149
;
You can’t perform that action at this time.
0 commit comments