diff --git a/README.md b/README.md index 9737c28..b0a0948 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ ```shell -php artisan vendor:publish --provider=StarPoolCloud\Providers\StarPoolCloudServiceProvider -``` \ No newline at end of file +php artisan vendor:publish --provider=BvBeJ\Providers\BvBeJServiceProvider +``` diff --git a/composer.json b/composer.json index b0ba984..1bfbbfb 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "starpoolcloud/base-php", + "name": "bvbej/base-php", "license": "MIT", "authors": [ { @@ -19,7 +19,7 @@ }, "autoload": { "psr-4": { - "StarPoolCloud\\": "src/" + "BvBeJ\\": "src/" }, "files": [ "src/Handles/File/helper.php", @@ -29,10 +29,10 @@ "extra": { "laravel": { "providers": [ - "StarPoolCloud\\Providers\\StarPoolCloudServiceProvider" + "BvBeJ\\Providers\\BvBeJServiceProvider" ], "aliases": { - "StarPoolCloud": "StarPoolCloud\\Facades\\StarPoolCloudFacade" + "BvBeJ": "BvBeJ\\Facades\\BvBeJFacade" } } } diff --git a/config/apollo.php b/config/apollo.php index 5d0f128..29b3518 100644 --- a/config/apollo.php +++ b/config/apollo.php @@ -1,7 +1,7 @@ 'https://apollo.config.squrab.com', + 'server_addr' => 'https://config.bvbej.com', 'cluster' => 'dev', 'client_ip' => '127.0.0.1', 'appid' => env('APP_NAME', ''), diff --git a/src/Commands/ApolloConfigSync.php b/src/Commands/ApolloConfigSync.php index 0d8dac2..3142c52 100644 --- a/src/Commands/ApolloConfigSync.php +++ b/src/Commands/ApolloConfigSync.php @@ -1,7 +1,7 @@ updateEnv(); + app('BvBeJApollo')->updateEnv(); $this->info('Success'); } catch (Exception $exception) { $this->error("Error:{$exception->getMessage()}"); } } -} \ No newline at end of file +} diff --git a/src/Facades/StarPoolCloudFacade.php b/src/Facades/BvBeJFacade.php similarity index 89% rename from src/Facades/StarPoolCloudFacade.php rename to src/Facades/BvBeJFacade.php index 57918ed..c516e47 100644 --- a/src/Facades/StarPoolCloudFacade.php +++ b/src/Facades/BvBeJFacade.php @@ -1,7 +1,7 @@ app->singleton('StarPoolCloud', function () { - return new StarPoolCloudHandle(); + $this->app->singleton('BvBeJ', function () { + return new BvBeJHandle(); }); - $this->app->singleton('StarPoolCloudApollo', function () { + $this->app->singleton('BvBeJApollo', function () { return new Client(config('apollo')); }); } -} \ No newline at end of file +}