正在显示
3 个修改的文件
包含
26 行增加
和
44 行删除
src/GzCBECProvider.php
已删除
100644 → 0
| 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 | -} |
src/GzCBECServiceProvider.php
0 → 100644
| 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 | +} |
-
请 注册 或 登录 后发表评论