refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
27
app/Services/QueuableService.php
Normal file
27
app/Services/QueuableService.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Makes a BaseService queuable using the generic ServiceQueue job.
|
||||
*/
|
||||
interface QueuableService
|
||||
{
|
||||
/**
|
||||
* Execute the service.
|
||||
*
|
||||
* @param array $data
|
||||
* @return void
|
||||
*/
|
||||
public function handle(array $data): void;
|
||||
|
||||
/**
|
||||
* Handle a job failure.
|
||||
*
|
||||
* @param \Throwable $exception
|
||||
* @return void
|
||||
*/
|
||||
public function failed(Throwable $exception): void;
|
||||
}
|
||||
Reference in New Issue
Block a user