From ea2d756e810eb03ac4dd1df4a48eadc37b54b368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=BChne?= Date: Thu, 5 Mar 2026 08:33:49 +0100 Subject: [PATCH] use addCommands([$command]) instead of add($command) to be compatible with Symfony 8 --- src/CliConfigurator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CliConfigurator.php b/src/CliConfigurator.php index 6d480a8b..09550841 100644 --- a/src/CliConfigurator.php +++ b/src/CliConfigurator.php @@ -70,7 +70,7 @@ public function configure(Application $cli): void $command = $this->container->get($commandName); $command->getDefinition()->addOption($this->createObjectManagerInputOption()); - $cli->add($command); + $cli->addCommands([$command]); } $objectManager = $this->container->get($this->getObjectManagerName());