Commit 42f2c9a6 authored by Euan游根明's avatar Euan游根明

perf: init

parent ce312c3b
...@@ -17,10 +17,6 @@ if (isset($GLOBALS['_composer_autoload_path'])) { ...@@ -17,10 +17,6 @@ if (isset($GLOBALS['_composer_autoload_path'])) {
} }
$options = getopt('', array('prepend:')); $options = getopt('', array('prepend:'));
if (isset($options['prepend'])) {
require $options['prepend'];
}
require NACOS_COMPOSER_INSTALL; require NACOS_COMPOSER_INSTALL;
\Galaxy\NacosClient\Nacos\Nacos::run($options); \Galaxy\NacosClient\Nacos\Nacos::run($options);
\ No newline at end of file
...@@ -8,6 +8,8 @@ class Nacos ...@@ -8,6 +8,8 @@ class Nacos
public static array $configs = []; public static array $configs = [];
public static function run($options) public static function run($options)
{ {
var_dump($options);
die;
self::configure(); self::configure();
$this->info('开始拉取配置文件'); $this->info('开始拉取配置文件');
$url = self::$configs['NACOS_URL'] ?? ''; $url = self::$configs['NACOS_URL'] ?? '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment