fomvasss /
laravel-eus
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Fomvasss\LaravelEUS; |
||
| 4 | |||
| 5 | use Fomvasss\LaravelEUS\EUSGenerator; |
||
| 6 | |||
| 7 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
| 8 | { |
||
| 9 | protected $defer = false; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Bootstrap the application services. |
||
| 13 | * |
||
| 14 | * @return void |
||
| 15 | */ |
||
| 16 | public function boot() |
||
| 17 | { |
||
| 18 | $this->publishedConfig(); |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Register the application services. |
||
| 23 | * |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | public function register() |
||
| 27 | { |
||
| 28 | $this->mergeConfigFrom(__DIR__.'/../config/eus.php', 'eus'); |
||
| 29 | |||
| 30 | $this->app->bind(\Fomvasss\LaravelEUS\Contracts\EUSGenerator::class, function () { |
||
| 31 | return new EUSGenerator($this->app); |
||
| 32 | }); |
||
| 33 | } |
||
| 34 | |||
| 35 | protected function publishedConfig() |
||
| 36 | { |
||
| 37 | $this->publishes([ |
||
| 38 | __DIR__.'/../config/eus.php' => config_path('eus.php') |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 39 | ], 'eus'); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |