From 504b6483e11a2e444bdee88bd45e44a36d393bb0 Mon Sep 17 00:00:00 2001 From: BvBeJ Date: Tue, 30 Nov 2021 21:34:25 +0800 Subject: [PATCH] [add] BvBeJ --- README.md | 4 ++-- composer.json | 8 ++++---- config/apollo.php | 2 +- src/Commands/ApolloConfigSync.php | 6 +++--- ...StarPoolCloudFacade.php => BvBeJFacade.php} | 8 ++++---- src/Handles/Apollo/Client.php | 4 ++-- src/Handles/Apollo/Signature.php | 4 ++-- ...StarPoolCloudHandle.php => BvBeJHandle.php} | 6 +++--- src/Handles/Trait/ThrottlesLogins.php | 2 +- ...ceProvider.php => BvBeJServiceProvider.php} | 18 +++++++++--------- 10 files changed, 31 insertions(+), 31 deletions(-) rename src/Facades/{StarPoolCloudFacade.php => BvBeJFacade.php} (89%) rename src/Handles/{StarPoolCloudHandle.php => BvBeJHandle.php} (99%) rename src/Providers/{StarPoolCloudServiceProvider.php => BvBeJServiceProvider.php} (62%) 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 +}