Added advanced application configs schema to docs, fixed the fact that there's now common/config/main.php

This commit is contained in:
Alexander Makarov
2014-01-29 02:48:46 +04:00
parent d88fbac4ee
commit a78fb85d82
2 changed files with 5 additions and 2 deletions

View File

@@ -99,6 +99,8 @@ Typically environment contains application bootstrap files such as `index.php` a
In order to avoid duplication configurations are overriding each other. For example, frontend reads configuration in the In order to avoid duplication configurations are overriding each other. For example, frontend reads configuration in the
following order: following order:
- `common/config/main.php`
- `common/config/main-local.php`
- `frontend/config/main.php` - `frontend/config/main.php`
- `frontend/config/main-local.php` - `frontend/config/main-local.php`
@@ -111,8 +113,9 @@ Parameters are read in the following order:
The later config file overrides the former. The later config file overrides the former.
Another difference is that most application component configurations are moved to params. Since params are read from Here's the full scheme:
`common` as well it allows you to specify database connection in one file and it will be then used for all applications.
![Advanced application configs](images/advanced-app-configs.png)
Configuring Composer Configuring Composer
-------------------- --------------------

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB