SolumDeSignum /
scenarios
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace SolumDeSignum\Scenarios; |
||
| 6 | |||
| 7 | use function config_path; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 8 | use Illuminate\Support\ServiceProvider; |
||
| 9 | |||
| 10 | class ScenariosServiceProvider extends ServiceProvider |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Bootstrap the application events. |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | */ |
||
| 17 | public function boot(): void |
||
| 18 | { |
||
| 19 | if ($this->app->runningInConsole()) { |
||
| 20 | $this->publishes( |
||
| 21 | [ |
||
| 22 | __DIR__.'/../config/scenarios.php' => config_path( |
||
| 23 | 'scenarios.php' |
||
| 24 | ), |
||
| 25 | ], |
||
| 26 | 'config' |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Register the application services. |
||
| 33 | * |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | public function register(): void |
||
| 37 | { |
||
| 38 | $this->mergeConfigFrom( |
||
| 39 | __DIR__.'/../config/scenarios.php', |
||
| 40 | 'scenarios' |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |