update email template
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs\Whmcs;
|
||||
|
||||
use App\Integrations\Whmcs\Transformers\ClientTransformer;
|
||||
use App\Integrations\Whmcs\Writers\ClientWriter;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class SyncClientJob implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* @param array $client Raw `tblclients` row from WHMCS.
|
||||
*/
|
||||
public function __construct(public array $client)
|
||||
{
|
||||
}
|
||||
|
||||
public function handle(ClientTransformer $transformer, ClientWriter $writer): void
|
||||
{
|
||||
$writer->write($transformer->transform($this->client));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user