/** * @return Router */ private static function createPhalconRouter() { $router = new Router(); $router->clear(); $router->setDi(new FactoryDefault()); return $router; }