refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s

This commit is contained in:
Kroonk
2026-05-22 16:19:55 +02:00
parent 38cc4c09ca
commit a213a1dba0
2215 changed files with 242567 additions and 6015 deletions

View File

@@ -0,0 +1,50 @@
<?php
namespace App\Services;
use Throwable;
use App\Jobs\ServiceQueue;
use Illuminate\Foundation\Bus\PendingDispatch;
/**
* This trait helps dispatch a QueuableService.
*/
trait DispatchableService
{
/**
* Dispatch the service with the given arguments.
*
* @param mixed ...$arguments
* @return \Illuminate\Foundation\Bus\PendingDispatch
*/
public static function dispatch(...$arguments): PendingDispatch
{
/** @var QueuableService $service */
$service = new self();
return ServiceQueue::dispatch($service, ...$arguments);
}
/**
* Dispatch the service with the given arguments on the sync queue.
*
* @param mixed ...$arguments
* @return mixed
*/
public static function dispatchSync(...$arguments)
{
/** @var QueuableService $service */
$service = new self();
return ServiceQueue::dispatchSync($service, ...$arguments);
}
/**
* Handle a job failure.
*
* @param \Throwable $exception
*/
public function failed(Throwable $exception): void
{
}
}