1 | <?php |
||
2 | |||
3 | namespace Kevincobain2000\LaravelAlertNotifications; |
||
4 | |||
5 | use Illuminate\Support\ServiceProvider; |
||
6 | |||
7 | class AlertNotificationsServiceProvider extends ServiceProvider |
||
8 | { |
||
9 | const CONFIG_PATH = __DIR__.'/config/laravel_alert_notifications.php'; |
||
10 | |||
11 | /** |
||
12 | * Indicates if loading of the provider is deferred. |
||
13 | * |
||
14 | * @var bool |
||
15 | */ |
||
16 | protected $defer = false; |
||
17 | |||
18 | /** |
||
19 | * Bootstrap the application services. |
||
20 | */ |
||
21 | public function boot() |
||
22 | { |
||
23 | $this->loadViewsFrom(__DIR__.'/views', 'laravel_alert_notifications'); |
||
24 | |||
25 | $this->publishes([ |
||
26 | self::CONFIG_PATH => base_path('config/laravel_alert_notifications.php'), |
||
27 | ], 'config'); |
||
28 | $this->publishes([ |
||
29 | __DIR__.'/views' => resource_path('views/vendor/laravel_alert_notifications'), |
||
30 | ], 'views'); |
||
31 | |||
32 | if (app() instanceof \Laravel\Lumen\Application) { |
||
0 ignored issues
–
show
|
|||
33 | app()->configure('laravel_alert_notifications'); |
||
34 | } |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Register the application services. |
||
39 | */ |
||
40 | public function register() |
||
41 | { |
||
42 | $this->mergeConfigFrom( |
||
43 | self::CONFIG_PATH, |
||
44 | 'laravel_alert_notifications' |
||
45 | ); |
||
46 | } |
||
47 | } |
||
48 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths