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(