drupal-console
drupal-console copied to clipboard
D9 - Drupal init fails generating automplete files.
D9 - Drupal init fails generating automplete files. The Class 'Symfony\Component\Process\ProcessBuilder' is not available anymore in Symfony 4.4
Similar issue: https://github.com/pact-foundation/pact-php/pull/61/commits/085d7bf5adf402201782d1cc1303ccd163f2cfeb
Fixed by using intead:
use Symfony\Component\Process\Process;
I encountered this issue with ProcessBuilder
being unavailable when attempting to use Alchemy/Zippy
.
The latest release of Alchemy/Zippy
(0.4.9
) — which Drupal Console currently installs as a dependency — still uses ProcessBuilder
.
You can see that amongst the commits to master
since 0.4.9
, they've updated Zippy to use Process
instead of ProcessBuilder
, but have yet to make it part of an official release.
The ProcessBuilder
class was removed from symfony/process
in the 4.0.0
release: CHANGELOG.md