From 352a8ba401f40cb5b77886fbdb6b97eb2da83d70 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 2 Nov 2015 19:13:35 +0100 Subject: [PATCH] configure CSRF protection under framework.form --- book/service_container.rst | 4 ++-- quick_tour/the_architecture.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/book/service_container.rst b/book/service_container.rst index 66eb38641be..5bd4a5ce7e3 100644 --- a/book/service_container.rst +++ b/book/service_container.rst @@ -431,8 +431,8 @@ invokes the service container extension inside the FrameworkBundle: # app/config/config.yml framework: secret: xxxxxxxxxx - form: true - csrf_protection: true + form: + csrf_protection: ~ router: { resource: "%kernel.root_dir%/config/routing.yml" } # ... diff --git a/quick_tour/the_architecture.rst b/quick_tour/the_architecture.rst index e9b9816fc21..f928a424a13 100644 --- a/quick_tour/the_architecture.rst +++ b/quick_tour/the_architecture.rst @@ -151,8 +151,8 @@ or PHP. Have a look at this sample of the default Symfony configuration: router: resource: "%kernel.root_dir%/config/routing.yml" strict_requirements: "%kernel.debug%" - form: true - csrf_protection: true + form: + csrf_protection: ~ validation: { enable_annotations: true } templating: { engines: ['twig'] } default_locale: "%locale%"