Sfoglia il codice sorgente

[ZF-9044]: add documentation to show possibility to precise stack index when register plugin with Zend_Application_Resource_Frontcontroller

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20837 44c647ce-9c0f-0410-b52a-842ac1e357ba
mikaelkael 16 anni fa
parent
commit
23f0d35338

+ 5 - 1
documentation/manual/en/module_specs/Zend_Application-AvailableResources-Frontcontroller.xml

@@ -78,7 +78,9 @@
             <para>
                 <emphasis><property>plugins</property></emphasis>: array of front controller plugin
                 class names. The resource will instantiate each class (with no constructor
-                arguments) and then register the instance with the front controller.
+                arguments) and then register the instance with the front controller. If you want to
+                register a plugin with a particular stack index, you need to provide an array with
+                two keys <property>class</property> and <property>index</property>.
             </para>
         </listitem>
 
@@ -114,6 +116,8 @@ resources.frontController.defaultModule = "static"
 resources.frontController.baseUrl = "/subdir"
 resources.frontController.plugins.foo = "My_Plugin_Foo"
 resources.frontController.plugins.bar = "My_Plugin_Bar"
+resources.frontController.plugins.baz.class = "My_Plugin_Baz"
+resources.frontController.plugins.baz.index = 123
 resources.frontController.env = APPLICATION_ENV
 ]]></programlisting>
     </example>