瀏覽代碼

Added missing documentation of the ability to pass multiple config files (to merge) into Zend_Application's constructor

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20943 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic 16 年之前
父節點
當前提交
2404ed147b
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      documentation/manual/en/module_specs/Zend_Application-CoreFunctionality-Application.xml

+ 12 - 0
documentation/manual/en/module_specs/Zend_Application-CoreFunctionality-Application.xml

@@ -135,6 +135,18 @@
                                             to determine what section of the
                                             to determine what section of the
                                             configuration to pull.
                                             configuration to pull.
                                         </para>
                                         </para>
+                                        <para>
+                                            As of 1.10, you may also pass multiple paths containing config
+                                            files to be merged into a single configuration. This assists in
+                                            reducing config duplication across many contexts which share
+                                            common settings (e.g. configs for HTTP, or CLI, each sharing some
+                                            characteristics but with their own conflicting values for others) or
+                                            merely splitting a long configuration across many smaller categorised
+                                            files. The parameter in this case is an array with a single key "configs"
+                                            whose value is an array of the files to merge. Note: this means
+                                            you either pass a literal path, or
+                                            array("configs"=>array("/path1","/path2"[,...])).
+                                        </para>
                                     </listitem>
                                     </listitem>
 
 
                                     <listitem>
                                     <listitem>