|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace App\Providers; |
|
4
|
|
|
|
|
5
|
|
|
use App\DynamicRelations\Company\Comments; |
|
6
|
|
|
use App\DynamicRelations\Company\Discussions; |
|
7
|
|
|
use App\DynamicRelations\Company\Documents; |
|
8
|
|
|
use App\Forms\Builders\PersonForm as LocalPersonForm; |
|
9
|
|
|
use App\Http\Requests\ValidatePersonRequest as LocalPersonRequest; |
|
10
|
|
|
use App\Http\Requests\ValidatePersonStoreRequest as LocalPersonStore; |
|
|
|
|
|
|
11
|
|
|
use App\Http\Requests\ValidatePersonUpdateRequest as LocalPersonUpdate; |
|
|
|
|
|
|
12
|
|
|
use App\Models\User; |
|
13
|
|
|
use App\Person as LocalPerson; |
|
14
|
|
|
use App\Tables\Builders\PersonTable as LocalPersonTable; |
|
15
|
|
|
use Illuminate\Support\ServiceProvider; |
|
16
|
|
|
use LaravelEnso\ActionLogger\DynamicsRelations\ActionLogs; |
|
|
|
|
|
|
17
|
|
|
use LaravelEnso\ActionLogger\Http\Middleware\ActionLogger; |
|
18
|
|
|
use LaravelEnso\Companies\Models\Company; |
|
19
|
|
|
use LaravelEnso\Core\Models\User as BaseUser; |
|
20
|
|
|
use LaravelEnso\DynamicMethods\Services\Methods; |
|
21
|
|
|
use LaravelEnso\People\Forms\Builders\PersonForm; |
|
22
|
|
|
use LaravelEnso\People\Http\Requests\ValidatePersonRequest; |
|
23
|
|
|
use LaravelEnso\People\Http\Requests\ValidatePersonStore; |
|
|
|
|
|
|
24
|
|
|
use LaravelEnso\People\Http\Requests\ValidatePersonUpdate; |
|
|
|
|
|
|
25
|
|
|
use LaravelEnso\People\Models\Person; |
|
26
|
|
|
use LaravelEnso\People\Tables\Builders\PersonTable; |
|
27
|
|
|
|
|
28
|
|
|
class AppServiceProvider extends ServiceProvider |
|
29
|
|
|
{ |
|
30
|
|
|
public $bindings = [ |
|
31
|
|
|
BaseUser::class => User::class, |
|
32
|
|
|
]; |
|
33
|
|
|
|
|
34
|
|
|
public function boot() |
|
35
|
|
|
{ |
|
36
|
|
|
$this->app->bind(ValidatePersonStore::class, function () { |
|
37
|
|
|
return new LocalPersonStore(); |
|
38
|
|
|
}); |
|
39
|
|
|
$this->app->bind(ValidatePersonUpdate::class, function () { |
|
40
|
|
|
return new LocalPersonUpdate(); |
|
41
|
|
|
}); |
|
42
|
|
|
$this->app->bind(ValidatePersonRequest::class, function () { |
|
43
|
|
|
return new LocalPersonRequest(); |
|
44
|
|
|
}); |
|
45
|
|
|
$this->app->bind(EnsoPerson::class, function () { |
|
|
|
|
|
|
46
|
|
|
return new LocalPerson(); |
|
47
|
|
|
}); |
|
48
|
|
|
$this->app->bind(Person::class, function () { |
|
49
|
|
|
return new LocalPerson(); |
|
50
|
|
|
}); |
|
51
|
|
|
$this->app->bind(PersonTable::class, function () { |
|
52
|
|
|
return new LocalPersonTable(); |
|
53
|
|
|
}); |
|
54
|
|
|
$this->app->bind(PersonForm::class, function () { |
|
55
|
|
|
return new LocalPersonForm(); |
|
56
|
|
|
}); |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
public function register() |
|
60
|
|
|
{ |
|
61
|
|
|
Methods::bind(Company::class, [Comments::class, Discussions::class, Documents::class]); |
|
62
|
|
|
//Methods::bind(User::class, [ActionLogs::class]); |
|
63
|
|
|
} |
|
64
|
|
|
} |
|
65
|
|
|
|
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