From a78fb85d82750d1fcd664a2259151758cb7d367e Mon Sep 17 00:00:00 2001
From: Alexander Makarov <sam@rmcreative.ru>
Date: Wed, 29 Jan 2014 02:48:46 +0400
Subject: [PATCH] Added advanced application configs schema to docs, fixed the fact that there's now common/config/main.php

---
 docs/guide/apps-advanced.md                | 7 +++++--
 docs/guide/images/advanced-app-configs.png | Bin 0 -> 24884 bytes
 2 files changed, 5 insertions(+), 2 deletions(-)
 create mode 100644 docs/guide/images/advanced-app-configs.png

diff --git a/docs/guide/apps-advanced.md b/docs/guide/apps-advanced.md
index fd41be7..38ac76a 100644
--- a/docs/guide/apps-advanced.md
+++ b/docs/guide/apps-advanced.md
@@ -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
 following order:
 
+- `common/config/main.php`
+- `common/config/main-local.php`
 - `frontend/config/main.php`
 - `frontend/config/main-local.php`
 
@@ -111,8 +113,9 @@ Parameters are read in the following order:
 
 The later config file overrides the former.
 
-Another difference is that most application component configurations are moved to params. Since params are read from
-`common` as well it allows you to specify database connection in one file and it will be then used for all applications.
+Here's the full scheme:
+
+![Advanced application configs](images/advanced-app-configs.png)
 
 Configuring Composer
 --------------------
diff --git a/docs/guide/images/advanced-app-configs.png b/docs/guide/images/advanced-app-configs.png
new file mode 100644
index 0000000..1983719
Binary files /dev/null and b/docs/guide/images/advanced-app-configs.png differ
--
libgit2 0.27.1