You are here

public function ProcessFactory::__construct in Automatic Updates 8.2

Constructs a ProcessFactory object.

Parameters

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

File

package_manager/src/ProcessFactory.php, line 47

Class

ProcessFactory
Defines a process factory which sets the COMPOSER_HOME environment variable.

Namespace

Drupal\package_manager

Code

public function __construct(FileSystemInterface $file_system, ConfigFactoryInterface $config_factory) {
  $this->decorated = new StagerProcessFactory();
  $this->fileSystem = $file_system;
  $this->configFactory = $config_factory;
}