From f9de6af6aa694822017a87f3c21c4e769e050e37 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Sun, 23 Jan 2011 13:08:25 -0600 Subject: [PATCH] [quick_tour] Upgrading the CSRF configuration to the new format. --- quick_tour/the_architecture.rst | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/quick_tour/the_architecture.rst b/quick_tour/the_architecture.rst index 1a3923caa55..f3c31db0009 100644 --- a/quick_tour/the_architecture.rst +++ b/quick_tour/the_architecture.rst @@ -171,7 +171,9 @@ PHP. Have a look at the default configuration: app.config: charset: UTF-8 error_handler: null - csrf_secret: xxxxxxxxxx + csrf_protection: + enabled: true + secret: xxxxxxxxxx router: { resource: "%kernel.root_dir%/config/routing.yml" } validation: { enabled: true, annotations: true } templating: @@ -203,10 +205,11 @@ PHP. Have a look at the default configuration: .. code-block:: xml - + + @@ -235,12 +238,12 @@ PHP. Have a look at the default configuration: // app/config/config.php $container->loadFromExtension('app', 'config', array( - 'charset' => 'UTF-8', - 'error_handler' => null, - 'csrf-secret' => 'xxxxxxxxxx', - 'router' => array('resource' => '%kernel.root_dir%/config/routing.php'), - 'validation' => array('enabled' => true, 'annotations' => true), - 'templating' => array( + 'charset' => 'UTF-8', + 'error_handler' => null, + 'csrf-protection' => array('enabled' => true, 'secret' => 'xxxxxxxxxx'), + 'router' => array('resource' => '%kernel.root_dir%/config/routing.php'), + 'validation' => array('enabled' => true, 'annotations' => true), + 'templating' => array( #'assets_version' => "SomeVersionScheme", ), 'session' => array(