Re: svn: /phpdoc/en/trunk/reference/yaf/yaf_dispatcher/ registerplugin.xml
| From: | Peter Cowburn | Date: | Thu, 08 Dec 2011 07:27:00 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/yaf/yaf_dispatcher/ registerplugin.xml | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-9183@lists.php.net to get a copy of this message | ||
On 8 December 2011 03:42, Justin Martin <frozenfire@php.net> wrote:
> frozenfire Thu, 08 Dec 2011 03:42:13 +0000
>
> Revision:
> http://svn.php.net/viewvc?view=revision&revision=320626
>
> Log:
> Tabs/formatting, and fix of example.
Indenting of code should use four spaces.
>
> Changed paths:
> U phpdoc/en/trunk/reference/yaf/yaf_dispatcher/registerplugin.xml
>
> Modified: phpdoc/en/trunk/reference/yaf/yaf_dispatcher/registerplugin.xml
> ===================================================================
> --- phpdoc/en/trunk/reference/yaf/yaf_dispatcher/registerplugin.xml 2011-12-08 03:18:28
> UTC (rev 320625)
> +++ phpdoc/en/trunk/reference/yaf/yaf_dispatcher/registerplugin.xml 2011-12-08 03:42:13
> UTC (rev 320626)
> @@ -51,16 +51,18 @@
> <programlisting role="php">
> <![CDATA[
> <?php
> -class Bootstrap extends Yaf_Bootstrap_Abstract{
> - public function _initPlugin(Yaf_Dispatcher $dispatcher) {
> - /**
> - * Yaf assumes plugin scripts under [application.directory] .
> "/plugins"
> - * for this case, it will be:
> - * [application.directory] . "/plugins/" . "User" .
> [application.ext]
> - */
> - $user = new UserPlugin();
> - $dispatcher->registerPlugin($user);
> - }
> +class Bootstrap extends Yaf_Bootstrap_Abstract {
> + public function _initPlugin(Yaf_Dispatcher $dispatcher) {
> + /**
> + * Yaf assumes plugin scripts under [application.directory] . "/plugins"
> + * for this case, it will be:
> + * [application.directory] . "/plugins/" . "User" . [application.ext]
> + */
> + $user = new UserPlugin();
> + $dispatcher->registerPlugin($user);
> + }
> +}
> +?>
> ]]>
> </programlisting>
> </example>
>
>
> --
> PHP Documentation Commits Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php