public function FileCopierFactory::__construct in Automatic Updates 8.2
Constructs a FileCopierFactory object.
Parameters
\Symfony\Component\Process\ExecutableFinder $executable_finder: The Symfony executable finder.
\PhpTuf\ComposerStager\Infrastructure\Process\FileCopier\PhpFileCopierInterface $php_file_copier: The PHP file copier service.
\PhpTuf\ComposerStager\Infrastructure\Process\FileCopier\RsyncFileCopierInterface $rsync_file_copier: The rsync file copier service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
File
- package_manager/
src/ FileCopierFactory.php, line 58
Class
- FileCopierFactory
- A file copier factory which returns file copiers according to configuration.
Namespace
Drupal\package_managerCode
public function __construct(ExecutableFinder $executable_finder, PhpFileCopierInterface $php_file_copier, RsyncFileCopierInterface $rsync_file_copier, ConfigFactoryInterface $config_factory) {
$this->decorated = new StagerFileCopierFactory($executable_finder, $php_file_copier, $rsync_file_copier);
$this->phpFileCopier = $php_file_copier;
$this->rsyncFileCopier = $rsync_file_copier;
$this->configFactory = $config_factory;
}