Skip to content

Commit

Permalink
Applied comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Nov 28, 2015
1 parent f2be12a commit 47e11f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
21 changes: 6 additions & 15 deletions cookbook/configuration/configuration_organization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ default Symfony Standard Edition follow this structure:
your-project/
├─ app/
│ ├─ ...
│ └─ config/
│ ├─ config.yml
│ ├─ config_dev.yml
Expand All @@ -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.
Expand All @@ -69,6 +66,7 @@ name as the environment:
your-project/
├─ app/
│ ├─ ...
│ └─ config/
│ ├─ common/
│ │ ├─ config.yml
Expand All @@ -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`
Expand Down Expand Up @@ -167,6 +161,7 @@ and several files to define all application services:
your-project/
├─ app/
│ ├─ ...
│ └─ config/
│ ├─ bundles/
│ │ ├─ bundle1.yml
Expand All @@ -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::
Expand Down
2 changes: 1 addition & 1 deletion cookbook/deployment/azure-website.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 47e11f8

Please sign in to comment.