Skip to content

Instantly share code, notes, and snippets.

@NandoKstroNet
Created January 26, 2023 21:58
Show Gist options
  • Save NandoKstroNet/9f985065cee77915841ffbdc7c132848 to your computer and use it in GitHub Desktop.
Save NandoKstroNet/9f985065cee77915841ffbdc7c132848 to your computer and use it in GitHub Desktop.
QueueInterface e Implementação - Curso Laravel Arquitetura Limpa em https://codeexperts.com.br
<?php
namespace MiniLeanpub\Infrastructure\Queue;
use App\Jobs\Book\ConvertBookJob;
use MiniLeanpub\Domain\Book\Queue\QueueInterface;
class BookConverterQueueSender implements QueueInterface
{
public function sendToQueue(string $bookPath): bool
{
ConvertBookJob::dispatch($bookPath);
return true;
}
}
<?php
namespace MiniLeanpub\Domain\Book\Queue;
interface QueueInterface
{
public function sendToQueue(string $bookCode);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment