From d8ad6aeb4d5e42679d73cbde2e43c2ec6fef6fd2 Mon Sep 17 00:00:00 2001 From: Alexander Strizhak Date: Wed, 11 Mar 2020 22:36:20 +0300 Subject: [PATCH] Option example --- docs/bundle/async_commands.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/bundle/async_commands.md b/docs/bundle/async_commands.md index 8c83d2b4d..b099c0b9c 100644 --- a/docs/bundle/async_commands.md +++ b/docs/bundle/async_commands.md @@ -43,7 +43,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface; /** @var ProducerInterface $producer */ $producer = $container->get(ProducerInterface::class); -$producer->sendCommand(Commands::RUN_COMMAND, new RunCommand('debug:container')); +$cmd = new RunCommand('debug:container', ['--tag=form.type']); +$producer->sendCommand(Commands::RUN_COMMAND, $cmd); ``` optionally you can get a command execution result: