Skip to content

Commit 9093871

Browse files
authored
[async-command] Fix service definition to apply the timeout
addArgument add only one argument at a time to the construtor, right now the timeout configured by the user is never applied and it's always the default (60) value, this fixes it.
1 parent 7810b03 commit 9093871

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DependencyInjection/AsyncCommandExtension.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public function load(array $configs, ContainerBuilder $container)
2424

2525
$id = sprintf('enqueue.async_command.%s.run_command_processor', $client['name']);
2626
$container->register($id, RunCommandProcessor::class)
27-
->addArgument('%kernel.project_dir%', $client['timeout'])
27+
->addArgument('%kernel.project_dir%')
28+
->addArgument($client['timeout'])
2829
->addTag('enqueue.processor', [
2930
'client' => $client['name'],
3031
'command' => $client['command_name'] ?? Commands::RUN_COMMAND,

0 commit comments

Comments
 (0)