8000 Merge branch '4.0' · symfony/symfony@b9d7315 · GitHub
[go: up one dir, main page]

Skip to content

Commit b9d7315

Browse files
committed
Merge branch '4.0'
* 4.0: Revert "bug #25151 [FrameworkBundle] Automatically enable the CSRF protection if CSRF manager exists (sroze)" Revert "bug #25502 Fixing wrong class_exists on interface (weaverryan)"
2 parents b286950 + a91b5a5 commit b9d7315

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;
@@ -110,7 +109,7 @@ private function addCsrfSection(ArrayNodeDefinition $rootNode)
110109
$rootNode
111110
->children()
112111
->arrayNode('csrf_protection')
113-
->{!class_exists(FullStack::class) && interface_exists(CsrfTokenManagerInterface::class) ? 'canBeDisabled' : 'canBeEnabled'}()
112+
->canBeEnabled()
114113
->end()
115114
->end()
116115
;

0 commit comments

Comments
 (0)
0