Created
January 26, 2023 21:58
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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