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%"
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: