From 8319273f32910b557f14c175597dfd0054f869f4 Mon Sep 17 00:00:00 2001 From: Justin Martin Date: Thu, 8 Dec 2011 03:42:13 +0000 Subject: [PATCH] Tabs/formatting, and fix of example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320626 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../yaf/yaf_dispatcher/registerplugin.xml | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/reference/yaf/yaf_dispatcher/registerplugin.xml b/reference/yaf/yaf_dispatcher/registerplugin.xml index db128c3e1d..d3a88ce701 100644 --- a/reference/yaf/yaf_dispatcher/registerplugin.xml +++ b/reference/yaf/yaf_dispatcher/registerplugin.xml @@ -51,16 +51,18 @@ 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); + } +} +?> ]]>