From 47e11f85ede509177dd6c3d700ae4b42d6154cfe Mon Sep 17 00:00:00 2001 From: WouterJ Date: Sat, 28 Nov 2015 13:37:13 +0100 Subject: [PATCH] Applied comments --- .../configuration_organization.rst | 21 ++++++------------- cookbook/deployment/azure-website.rst | 2 +- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/cookbook/configuration/configuration_organization.rst b/cookbook/configuration/configuration_organization.rst index d6a5e4f1ade..d3a1fc85b2f 100644 --- a/cookbook/configuration/configuration_organization.rst +++ b/cookbook/configuration/configuration_organization.rst @@ -36,6 +36,7 @@ default Symfony Standard Edition follow this structure: your-project/ ├─ app/ + │ ├─ ... │ └─ config/ │ ├─ config.yml │ ├─ config_dev.yml @@ -46,11 +47,7 @@ default Symfony Standard Edition follow this structure: │ ├─ routing.yml │ ├─ routing_dev.yml │ └─ security.yml - ├─ src/ - ├─ tests/ - ├─ var/ - ├─ vendor/ - └─ web/ + ├─ ... This default structure was chosen for its simplicity — one file per environment. But as any other Symfony feature, you can customize it to better suit your needs. @@ -69,6 +66,7 @@ name as the environment: your-project/ ├─ app/ + │ ├─ ... │ └─ config/ │ ├─ common/ │ │ ├─ config.yml @@ -85,11 +83,7 @@ name as the environment: │ ├─ parameters.yml │ ├─ routing.yml │ └─ security.yml - ├─ src/ - ├─ tests/ - ├─ var/ - ├─ vendor/ - └─ web/ + ├─ ... To make this work, change the code of the :method:`Symfony\\Component\\HttpKernel\\KernelInterface::registerContainerConfiguration` @@ -167,6 +161,7 @@ and several files to define all application services: your-project/ ├─ app/ + │ ├─ ... │ └─ config/ │ ├─ bundles/ │ │ ├─ bundle1.yml @@ -186,11 +181,7 @@ and several files to define all application services: │ ├─ backend.yml │ ├─ ... │ └─ security.yml - ├─ src/ - ├─ tests/ - ├─ var/ - ├─ vendor/ - └─ web/ + ├─ ... Again, change the code of the ``registerContainerConfiguration()`` method to make Symfony aware of the new file organization:: diff --git a/cookbook/deployment/azure-website.rst b/cookbook/deployment/azure-website.rst index ba5e278b2d1..c13d8afc2ec 100644 --- a/cookbook/deployment/azure-website.rst +++ b/cookbook/deployment/azure-website.rst @@ -265,7 +265,7 @@ directory with at least the following contents: /var/logs/* !var/cache/.gitkeep !var/logs/.gitkeep - /bin/SymfonyRequirements.php + /var/SymfonyRequirements.php /build/ /vendor/ /bin/