8000 [3.0][Cookbook] Use the 3.0 directory structure by wouterj · Pull Request #5917 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[3.0][Cookbook] Use the 3.0 directory structure #5917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 30, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Applied comments
  • Loading branch information
wouterj committed Nov 28, 2015
commit 47e11f85ede509177dd6c3d700ae4b42d6154cfe
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/
Copy link
Contributor
8000

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why isn't the bin directory present in here ? Is it expected ?
It has nothing to do with configuration files, but same as for new var and tests directories, right ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read through it: it's focusing on just the stuff in the app/ directory. I think really we never needed src, vendor or web here.

├─ 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