Skip to content

Commit

Permalink
Merge pull request #127 from CakeDC/issue/95
Browse files Browse the repository at this point in the history
Add default processor if argument is not passed to avoid processor hash
  • Loading branch information
markstory authored Jul 17, 2023
2 parents 4e2729a + 54c0fc4 commit 172ec7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/WorkerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function execute(Arguments $args, ConsoleIo $io)
$queue = $args->getOption('queue')
? (string)$args->getOption('queue')
: Configure::read("Queue.{$config}.queue", 'default');
$processorName = $args->getOption('processor') ? (string)$args->getOption('processor') : null;
$processorName = $args->getOption('processor') ? (string)$args->getOption('processor') : 'default';

$client->bindTopic($queue, $processor, $processorName);
$client->consume($extension);
Expand Down

0 comments on commit 172ec7c

Please sign in to comment.