public function initRouter() { $options = App::conf('app', 'router', array()); $router = Router::factory($options); $router->setConfig(App::conf('route')); return $router; }
public function testNormalize() { $router = \Core\Router\Router::factory(array('type' => 'rewrite')); $this->assertTrue($router->normalizeRoute('One/Two/ThreeFour') == 'one/two/three-four'); }
public function initRouter() { $options = array('type' => 'Console', 'default_route' => 'help/index'); $router = Router::factory($options); return $router; }