/** * 设置应用程序路径 * @param $dir */ static function setControllerPath($dir) { if (is_dir($dir)) { self::$controller_path = $dir; } else { \Swoole\Error::info("fatal error", "controller_path[{$dir}] is not exists."); } }