1 | <?php |
||||
2 | |||||
3 | namespace KiplingKelvin\ChpterLaravelSdk; |
||||
4 | |||||
5 | use Illuminate\Support\ServiceProvider; |
||||
0 ignored issues
–
show
|
|||||
6 | use KiplingKelvin\ChpterLaravelSdk\Console\InstallChpter; |
||||
7 | |||||
8 | class ChpterServiceProvider extends ServiceProvider |
||||
9 | { |
||||
10 | /** |
||||
11 | * Bootstrap any application services. |
||||
12 | * |
||||
13 | * @return void |
||||
14 | */ |
||||
15 | public function boot() |
||||
16 | { |
||||
17 | // |
||||
18 | |||||
19 | // require __DIR__.'/routes/web.php'; |
||||
20 | $this->loadRoutesFrom(__DIR__.'/routes/web.php'); |
||||
21 | |||||
22 | if ($this->app->runningInConsole()) { |
||||
23 | //publish the config files |
||||
24 | $this->publishes([ |
||||
25 | __DIR__.'/../config/chpter.php' => config_path('chpter.php'), |
||||
0 ignored issues
–
show
The function
config_path was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
26 | ], 'chpter-config'); |
||||
27 | |||||
28 | // Register commands |
||||
29 | $this->commands([ |
||||
30 | InstallChpter::class, |
||||
31 | ]); |
||||
32 | } |
||||
33 | } |
||||
34 | |||||
35 | /** |
||||
36 | * Register any application services. |
||||
37 | * |
||||
38 | * @return void |
||||
39 | */ |
||||
40 | public function register() |
||||
41 | { |
||||
42 | |||||
43 | $this->app->singleton(Chpter::class, function () { |
||||
44 | return new Chpter(); |
||||
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