1 | <?php |
||
2 | |||
3 | namespace Innoflash\Events\Jobs\Saved; |
||
4 | |||
5 | use FaithGen\SDK\Traits\SavesToAmazonS3; |
||
6 | use Illuminate\Bus\Queueable; |
||
7 | use Illuminate\Contracts\Queue\ShouldQueue; |
||
8 | use Illuminate\Foundation\Bus\Dispatchable; |
||
9 | use Illuminate\Queue\InteractsWithQueue; |
||
10 | use Illuminate\Queue\SerializesModels; |
||
11 | use Innoflash\Events\Models\Event; |
||
12 | |||
13 | class S3Upload implements ShouldQueue |
||
14 | { |
||
15 | use Dispatchable, |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
16 | InteractsWithQueue, |
||
17 | Queueable, |
||
18 | SerializesModels, |
||
19 | SavesToAmazonS3; |
||
20 | |||
21 | public $deleteWhenMissingModels = true; |
||
22 | protected $event; |
||
23 | |||
24 | /** |
||
25 | * Create a new job instance. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | public function __construct(Event $event) |
||
30 | { |
||
31 | $this->event = $event; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Execute the job. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function handle() |
||
40 | { |
||
41 | $this->saveFiles($this->event); |
||
42 | } |
||
43 | } |
||
44 |