hechoendrupal / drupal-console-core

This project contains commands and features to be shared across DrupalConsole projects.
134 stars 69 forks source link

Rewrite all ProcessBuilder with Process #389

Closed LOBsTerr closed 1 year ago

LOBsTerr commented 1 year ago

Problem/Motivation

Running drupal database:client will run into this error:

Error: Class "Symfony\Component\Process\ProcessBuilder" not found in Drupal\Console\Command\Database\ClientCommand->execute() (line 66 of /home/foobar/public_html/vendor/drupal/console/src/Command/Database/ClientCommand.php).

This is because the ProcessBuilder was deprecated in Symfony 3.4 and was removed in Symfony 4.0. Instead, Process should be used directly.

How to reproduce

  1. Install a Drupal 9 site.
  2. Install Drupal Console on it.
  3. Run drupal database:client