1 | <?php |
||
2 | |||
3 | namespace App\Jobs\Tenant; |
||
4 | |||
5 | use App\Models\enso\companies\Company; |
||
0 ignored issues
–
show
|
|||
6 | use App\Service\Tenant; |
||
7 | use Illuminate\Bus\Queueable; |
||
8 | use Illuminate\Contracts\Queue\ShouldQueue; |
||
9 | use Illuminate\Foundation\Bus\Dispatchable; |
||
10 | use Illuminate\Queue\InteractsWithQueue; |
||
11 | use Illuminate\Queue\SerializesModels; |
||
12 | use Illuminate\Support\Facades\Storage; |
||
13 | use LaravelEnso\Multitenancy\Traits\ConnectionStoragePath; |
||
14 | |||
15 | class ClearStrg implements ShouldQueue |
||
16 | { |
||
17 | use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, ConnectionStoragePath; |
||
0 ignored issues
–
show
|
|||
18 | |||
19 | private $tenant; |
||
20 | |||
21 | /** |
||
22 | * Create a new job instance. |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | public function __construct(Company $tenant) |
||
27 | { |
||
28 | $this->tenant = $tenant; |
||
29 | |||
30 | // $this->queue = 'light'; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Execute the job. |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | public function handle() |
||
39 | { |
||
40 | Tenant::set($this->tenant); |
||
41 | |||
42 | Storage::deleteDirectory($this->tenantPath()); |
||
43 | } |
||
44 | } |
||
45 |
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