| 1 | <?php |
||
| 7 | class ComposerSecurityCheckServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Indicates if loading of the provider is deferred. |
||
| 11 | * |
||
| 12 | * @var bool |
||
| 13 | */ |
||
| 14 | protected $defer = true; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Bootstrap the application events. |
||
| 18 | * |
||
| 19 | * @return void |
||
| 20 | */ |
||
| 21 | 36 | public function boot() |
|
| 22 | { |
||
| 23 | 36 | $this->publishes([ |
|
| 24 | 36 | __DIR__ . '/config/composer-security-check.php' => config_path('composer-security-check.php'), |
|
| 25 | 36 | ], 'config'); |
|
| 26 | |||
| 27 | 36 | $this->loadViewsFrom(__DIR__ . '/views', 'composer-security-check'); |
|
| 28 | |||
| 29 | 36 | $this->publishes([ |
|
| 30 | 36 | __DIR__ . '/views' => base_path('resources/views/vendor/composer-security-check'), |
|
| 31 | ]); |
||
| 32 | 36 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Register the service provider. |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | 36 | public function register() |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Get the services provided by the provider. |
||
| 52 | * |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function provides() |
||
| 59 | } |
||
| 60 |