In commands/web/drupal, we call Symfony\Component\Console\Application::add().
This is:
- deprecated in symfony/console 7.
- removed in symfony/console 8.
So we see this:
PHP Fatal error: Uncaught Error: Call to undefined method Symfony\Component\Console\Application::add() in /mnt/ddev_config/commands/web/drupal:43
Instead, we need to call ->addCommand().
After replacing all of these ->add() calls, we get this instead:
PHP Fatal error: Declaration of DrupalCoreDev\Command\UninstallCommand::configure() must be compatible with Symfony\Component\Console\Command\Command::configure(): void in /var/www/html/.ddev/core-dev/src/Command/UninstallCommand.php on line 15
(EDIT: Removed last part)
In
commands/web/drupal, we callSymfony\Component\Console\Application::add().This is:
So we see this:
Instead, we need to call
->addCommand().After replacing all of these
->add()calls, we get this instead:(EDIT: Removed last part)