Skip to content

Commit 1dedaa4

Browse files
authored
Merge pull request #1030 from gam6itko/patch-1
RUN_COMMAND Option example
2 parents 348ff3f + d8ad6ae commit 1dedaa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/bundle/async_commands.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
4343
/** @var ProducerInterface $producer */
4444
$producer = $container->get(ProducerInterface::class);
4545

46-
$producer->sendCommand(Commands::RUN_COMMAND, new RunCommand('debug:container'));
46+
$cmd = new RunCommand('debug:container', ['--tag=form.type']);
47+
$producer->sendCommand(Commands::RUN_COMMAND, $cmd);
4748
```
4849

4950
optionally you can get a command execution result:

0 commit comments

Comments
 (0)