Skip to content

Commit 54b340f

Browse files
committed
CR fixess
1 parent a160ca4 commit 54b340f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

DependencyInjection/AsyncCommandExtension.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ public function load(array $configs, ContainerBuilder $container)
1616
if (!is_array($client)) {
1717
$client = [
1818
'name' => $client,
19-
'prefix' => '',
19+
'command_name' => Commands::RUN_COMMAND,
20+
'queue_name' => Commands::RUN_COMMAND,
2021
'timeout' => 60,
2122
];
2223
}
@@ -26,8 +27,8 @@ public function load(array $configs, ContainerBuilder $container)
2627
->addArgument('%kernel.project_dir%', $client['timeout'])
2728
->addTag('enqueue.processor', [
2829
'client' => $client['name'],
29-
'command' => $client['prefix'].Commands::RUN_COMMAND,
30-
'queue' => $client['prefix'].Commands::RUN_COMMAND,
30+
'command' => $client['command_name'] ?? Commands::RUN_COMMAND,
31+
'queue' => $client['queue_name'] ?? Commands::RUN_COMMAND,
3132
'prefix_queue' => false,
3233
'exclusive' => true,
3334
])

0 commit comments

Comments
 (0)