-
-
Notifications
You must be signed in to change notification settings - Fork 554
Closed
Description
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
- Install a Drupal 9 site.
- Install Drupal Console on it.
- Run
drupal database:client
Solution
Replace the ProcessBuilder
call with Process
.
Example: pact-foundation/pact-php#61
Metadata
Metadata
Assignees
Labels
No labels