svn: /phpdoc/en/trunk/reference/yaf/yaf_dispatcher/ registerplugin.xml

From: Date: Thu, 08 Dec 2011 03:42:13 +0000
Subject: svn: /phpdoc/en/trunk/reference/yaf/yaf_dispatcher/ registerplugin.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9182@lists.php.net to get a copy of this message
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. 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>

« previous php.doc.cvs (#9182) next »