diff --git a/src/Parallelization.php b/src/Parallelization.php index 578cea2..b8c5540 100644 --- a/src/Parallelization.php +++ b/src/Parallelization.php @@ -215,7 +215,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int { $parallelizationInput = ParallelizationInput::fromInput($input); - $container = $this->getContainer(); $logger = $this->createLogger($output); return (new ParallelExecutor( @@ -232,7 +231,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $this->getConsolePath(), self::detectPhpExecutable(), $this->getName(), - self::getWorkingDirectory($container), + self::getWorkingDirectory(), $this->getExtraEnvironmentVariables(), $this->getDefinition(), $this->createItemErrorHandler(), @@ -341,13 +340,9 @@ private static function detectPhpExecutable(): string /** * Returns the working directory for the child process. - * - * @param ContainerInterface $container The service container - * - * @return string The absolute path to the working directory */ - private static function getWorkingDirectory(ContainerInterface $container): string + private static function getWorkingDirectory(): string { - return dirname($container->getParameter('kernel.project_dir')); + return getcwd(); } }