作者 竞泽

alter:修改提供者名称

@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 "extra": { 24 "extra": {
25 "laravel": { 25 "laravel": {
26 "providers": [ 26 "providers": [
27 - "Lackoxygen\\GzCbec\\GzCBECProvider" 27 + "Lackoxygen\\GzCbec\\GzCBECServiceProvider"
28 ] 28 ]
29 } 29 }
30 } 30 }
1 -<?php  
2 -  
3 -  
4 -namespace Lackoxygen\GzCbec;  
5 -  
6 -  
7 -use Illuminate\Support\ServiceProvider;  
8 -  
9 -class GzCBECProvider extends ServiceProvider  
10 -{  
11 - /**  
12 - * @var bool  
13 - */  
14 - protected $defer = true;  
15 -  
16 - /**  
17 - * @var array  
18 - */  
19 - protected $commands = [];  
20 -  
21 - /**  
22 - * Register any application services.  
23 - *  
24 - * @return void  
25 - */  
26 - public function register()  
27 - {  
28 - $this->commands($this->commands);  
29 - }  
30 -  
31 - public function boot()  
32 - {  
33 - $this->publishes([__DIR__ . '/../config/gz-cbec.php' => config_path('gz-cbec.php')]);  
34 - }  
35 -  
36 - /**  
37 - * @return string[]  
38 - */  
39 - public function provides()  
40 - {  
41 - return ['gzCbec', GzCBEC::class];  
42 - }  
43 -}  
  1 +<?php
  2 +
  3 +
  4 +namespace Lackoxygen\GzCbec;
  5 +
  6 +
  7 +use Illuminate\Support\ServiceProvider;
  8 +
  9 +class GzCBECServiceProvider extends ServiceProvider
  10 +{
  11 +
  12 + public function boot()
  13 + {
  14 + $configPath = __DIR__ . '/../config/gz-cbec.php';
  15 + $this->publishes([$configPath => config_path('gz-cbec.php')], 'lackoxygen-gz-cbec');
  16 + }
  17 +
  18 + /**
  19 + * @inheritDoc
  20 + */
  21 + public function provides(): array
  22 + {
  23 + return ['gzCbec', GzCBEC::class];
  24 + }
  25 +}