tohidplus /
paravel
| 1 | <?php |
||||
| 2 | |||||
| 3 | |||||
| 4 | namespace Tohidplus\Paravel; |
||||
| 5 | |||||
| 6 | use SuperClosure\Serializer; |
||||
| 7 | use Tohidplus\Paravel\Console\Commands\Executor; |
||||
| 8 | use Illuminate\Support\ServiceProvider; |
||||
|
0 ignored issues
–
show
|
|||||
| 9 | use Tohidplus\Paravel\Process\ParallelProcessor; |
||||
| 10 | use Tohidplus\Paravel\Serializer\ParavelSerializer; |
||||
| 11 | |||||
| 12 | class ParavelServiceProvider extends ServiceProvider |
||||
| 13 | { |
||||
| 14 | public function register() |
||||
| 15 | { |
||||
| 16 | $this->commands([ |
||||
| 17 | Executor::class, |
||||
| 18 | ]); |
||||
| 19 | |||||
| 20 | $this->mergeConfigFrom( |
||||
| 21 | __DIR__ . '/config/paravel.php', 'paravel' |
||||
| 22 | ); |
||||
| 23 | |||||
| 24 | $this->publishes([ |
||||
| 25 | __DIR__ . '/config/paravel.php' => base_path('config/paravel.php') |
||||
|
0 ignored issues
–
show
The function
base_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
Loading history...
|
|||||
| 26 | ]); |
||||
| 27 | |||||
| 28 | $config = config('paravel'); |
||||
|
0 ignored issues
–
show
The function
config 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
Loading history...
|
|||||
| 29 | |||||
| 30 | $this->app->bind('paravel', function () use ($config) { |
||||
| 31 | return new ParallelProcessor($config); |
||||
| 32 | }); |
||||
| 33 | $this->app->singleton('paravel-serializer', function () { |
||||
| 34 | return new ParavelSerializer(new Serializer()); |
||||
| 35 | }); |
||||
| 36 | } |
||||
| 37 | } |
||||
| 38 |
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