2020-04-12 00:26:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Initialize;
|
|
|
|
|
|
|
|
use App\Member;
|
|
|
|
use Aweos\Agnoster\Progress\HasProgress;
|
2021-11-17 22:32:52 +01:00
|
|
|
use Illuminate\Bus\Queueable;
|
2020-04-12 00:26:44 +02:00
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
2021-11-17 22:32:52 +01:00
|
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
2021-06-21 23:50:09 +02:00
|
|
|
use Zoomyboy\LaravelNami\NamiUser;
|
2020-04-12 00:26:44 +02:00
|
|
|
|
|
|
|
class InitializeJob implements ShouldQueue
|
|
|
|
{
|
|
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, HasProgress;
|
|
|
|
|
2022-02-12 16:16:56 +01:00
|
|
|
public NamiUser $user;
|
2020-04-12 00:26:44 +02:00
|
|
|
|
2021-06-21 23:50:09 +02:00
|
|
|
public function __construct(NamiUser $user)
|
2020-04-12 00:26:44 +02:00
|
|
|
{
|
|
|
|
$this->user = $user;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Execute the job.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function handle()
|
|
|
|
{
|
2022-01-03 01:17:24 +01:00
|
|
|
app(Initializer::class)->run($this->user);
|
2020-04-12 00:26:44 +02:00
|
|
|
}
|
|
|
|
}
|