Revert "bug #25151 [FrameworkBundle] Automatically enable the CSRF protection if CSRF manager exists (sroze)"

This reverts commit d5f04284f9, reversing
changes made to e52825e253.
This commit is contained in:
Fabien Potencier 2017-12-14 17:44:04 -08:00
parent 8013b4b2d3
commit 903f120816

View File

@ -21,7 +21,6 @@ use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\Form\Form; use Symfony\Component\Form\Form;
use Symfony\Component\Lock\Lock; use Symfony\Component\Lock\Lock;
use Symfony\Component\Lock\Store\SemaphoreStore; use Symfony\Component\Lock\Store\SemaphoreStore;
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
use Symfony\Component\Serializer\Serializer; use Symfony\Component\Serializer\Serializer;
use Symfony\Component\Translation\Translator; use Symfony\Component\Translation\Translator;
use Symfony\Component\Validator\Validation; use Symfony\Component\Validator\Validation;
@ -143,7 +142,7 @@ class Configuration implements ConfigurationInterface
$rootNode $rootNode
->children() ->children()
->arrayNode('csrf_protection') ->arrayNode('csrf_protection')
->{!class_exists(FullStack::class) && class_exists(CsrfTokenManagerInterface::class) ? 'canBeDisabled' : 'canBeEnabled'}() ->canBeEnabled()
->end() ->end()
->end() ->end()
; ;