| 1 | <?php namespace Mews\Purifier; |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Indicates if loading of the provider is deferred. |
||
| 12 | * |
||
| 13 | * @var bool |
||
| 14 | */ |
||
| 15 | protected $defer = true; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Boot the service provider. |
||
| 19 | * |
||
| 20 | * @return null |
||
| 21 | */ |
||
| 22 | public function boot() |
||
| 23 | { |
||
| 24 | if ($this->app instanceof LaravelApplication) { |
||
| 25 | $this->publishes([$this->getConfigSource() => config_path('purifier.php')]); |
||
| 26 | } elseif ($this->app instanceof LumenApplication) { |
||
| 27 | $this->app->configure('purifier'); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the config source. |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | protected function getConfigSource() |
||
| 37 | { |
||
| 38 | return realpath(__DIR__.'/../config/purifier.php'); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Register the service provider. |
||
| 43 | * |
||
| 44 | * @return void |
||
| 45 | */ |
||
| 46 | public function register() |
||
| 47 | { |
||
| 48 | $this->mergeConfigFrom($this->getConfigSource(), 'purifier'); |
||
| 49 | |||
| 50 | $this->app->singleton('purifier', function (Container $app) { |
||
| 51 | return new Purifier($app['files'], $app['config']); |
||
| 52 | }); |
||
| 53 | |||
| 54 | $this->app->alias('purifier', Purifier::class); |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get the services provided by the provider. |
||
| 59 | * |
||
| 60 | * @return array |
||
| 61 | */ |
||
| 62 | public function provides() |
||
| 65 | } |
||
| 66 | } |
||
| 67 |
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