1 | <?php |
||||
2 | |||||
3 | namespace Someshwer\WorldCountries; |
||||
4 | |||||
5 | use Illuminate\Support\ServiceProvider; |
||||
0 ignored issues
–
show
|
|||||
6 | use Someshwer\WorldCountries\Data\DataRepository; |
||||
7 | use Someshwer\WorldCountries\Lib\World; |
||||
8 | |||||
9 | /** |
||||
10 | * Author: Someshwer Bandapally |
||||
11 | * Date: 26-05-2018. |
||||
12 | * |
||||
13 | * Class WorldDataServiceProvider |
||||
14 | */ |
||||
15 | class WorldDataServiceProvider extends ServiceProvider |
||||
16 | { |
||||
17 | /** |
||||
18 | * Register any application services. |
||||
19 | * |
||||
20 | * @return void |
||||
21 | */ |
||||
22 | public function register() |
||||
23 | { |
||||
24 | $this->app->bind('bs-world', function () { |
||||
25 | return new World(new DataRepository()); |
||||
26 | }); |
||||
27 | } |
||||
28 | |||||
29 | /** |
||||
30 | * Bootstrap any application services. |
||||
31 | * |
||||
32 | * @return void |
||||
33 | */ |
||||
34 | public function boot() |
||||
35 | { |
||||
36 | // $this->loadRoutesFrom(__DIR__ . '/routes/routes.php'); |
||||
37 | $this->publishes([__DIR__.'/Config/world.php' => config_path('world.php')], 'config'); |
||||
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
![]() |
|||||
38 | } |
||||
39 | } |
||||
40 |
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