protected function _getRoutesFromDirectory($dir) { $root = Bootstrap::getInstance()->getRootDir(); Application::scanDir($dir, $files); foreach ($files as $file) { $route = str_replace(array($root . '/', '.php'), '', $file); $this->_routes[] = '\\' . str_replace('/', '\\', $route); } }
public static function autoload($class) { return Bootstrap::getInstance()->autoload($class); }