/** * Registers the applications default routes * * @return void */ protected static function _registerDefaultRoutes() { $route = new Brawler_Router_Route('help', new Brawler_Router_Argument_List(array(new Brawler_Router_Argument('h', false, false))), new Brawler_Controller_Help()); Brawler_Router::registerRoute($route); $route = new Brawler_Router_Route('scan', new Brawler_Router_Argument_List(array(new Brawler_Router_Argument('r', true, false))), new Brawler_Controller_Scan()); Brawler_Router::registerRoute($route); }
/** * Inits the Route List * * @return void */ protected static function _initRouteArray() { self::$_routes = new ArrayObject(); }
/** * (non-PHPdoc) * @see trunk/src/Brawler/Brawler_Controller#dispatch() */ public function dispatch($action = 'index') { Brawler_Router::route(); }