FIX Remove call to process::inheritEnvironmentVariables()

inheritEnvironmentVariables() was removed from the Symfony Process component in 5.0.0, as enviroment variables are always inherited.
This commit is contained in:
Levi Wilson-Brown 2023-08-09 18:17:28 +12:00
parent b2226c0a7e
commit 526ee734be

View File

@ -104,7 +104,6 @@ class SolrReindexImmediateHandler extends SolrReindexBase
// Set timeout from config. Process default is 60 seconds // Set timeout from config. Process default is 60 seconds
$process->setTimeout($this->config()->get('process_timeout')); $process->setTimeout($this->config()->get('process_timeout'));
$process->inheritEnvironmentVariables();
$process->run(); $process->run();
$res = $process->getOutput(); $res = $process->getOutput();