diff --git a/console/lazy_commands.rst b/console/lazy_commands.rst index 497b3cd33a0..7f46175186e 100644 --- a/console/lazy_commands.rst +++ b/console/lazy_commands.rst @@ -21,7 +21,7 @@ which will be responsible for returning ``Command`` instances:: use Symfony\Component\Console\CommandLoader\FactoryCommandLoader; $commandLoader = new FactoryCommandLoader(array( - 'app:heavy' => function () { return new HeavyCommand() }, + 'app:heavy' => function () { return new HeavyCommand(); }, )); $application = new Application(); @@ -51,7 +51,7 @@ array of ``Command`` factories as its only constructor argument:: use Symfony\Component\Console\CommandLoader\FactoryCommandLoader; $commandLoader = new FactoryCommandLoader(array( - 'app:foo' => function () { return new FooCommand() }, + 'app:foo' => function () { return new FooCommand(); }, 'app:bar' => array(BarCommand::class, 'create'), ));