|
|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<!-- EN-Revision: 20763 -->
|
|
|
+<!-- EN-Revision: 21357 -->
|
|
|
<!-- Reviewed: no -->
|
|
|
<sect2 id="zend.application.core-functionality.application">
|
|
|
<title>Zend_Application</title>
|
|
|
@@ -103,13 +103,30 @@
|
|
|
<varname>$options</varname> : <emphasis>optionnel</emphasis>.
|
|
|
</para>
|
|
|
<itemizedlist>
|
|
|
- <listitem><para>
|
|
|
- <emphasis><type>String</type></emphasis> : chemin vers
|
|
|
- un fichier <classname>Zend_Config</classname> à charger pour
|
|
|
- la configuration de votre application.
|
|
|
- <varname>$environment</varname> sera utilisé pour déterminer
|
|
|
- la section de configuration à charger depuis le fichier.
|
|
|
- </para></listitem>
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ <emphasis><type>String</type></emphasis> : chemin vers
|
|
|
+ un fichier <classname>Zend_Config</classname> à charger pour
|
|
|
+ la configuration de votre application.
|
|
|
+ <varname>$environment</varname> sera utilisé pour déterminer
|
|
|
+ la section de configuration à charger depuis le fichier.
|
|
|
+ </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
|
|
|
+ <acronym>HTTP</acronym>, or <acronym>CLI</acronym>, 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
|
|
|
+ <command>array("configs"=>array("/path1","/path2"[,...]));</command>.
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
|
|
|
<listitem><para>
|
|
|
<emphasis><type>Array</type></emphasis> : tableau
|