$client, 'command_name' => Commands::RUN_COMMAND, 'queue_name' => Commands::RUN_COMMAND, 'timeout' => 60, ]; } $id = sprintf('enqueue.async_command.%s.run_command_processor', $client['name']); $container->register($id, RunCommandProcessor::class) ->addArgument('%kernel.project_dir%') ->addArgument($client['timeout']) ->addTag('enqueue.processor', [ 'client' => $client['name'], 'command' => $client['command_name'] ?? Commands::RUN_COMMAND, 'queue' => $client['queue_name'] ?? Commands::RUN_COMMAND, 'prefix_queue' => false, 'exclusive' => true, ]) ->addTag('enqueue.transport.processor') ; } } }