function LoggingStager::stage
File
-
core/
modules/ package_manager/ src/ LoggingStager.php, line 32
Class
- LoggingStager
- Logs Composer Stager's Stager process output to a file.
Namespace
Drupal\package_managerCode
public function stage(array $composerCommand, PathInterface $activeDir, PathInterface $stagingDir, ?OutputCallbackInterface $callback = NULL, int $timeout = ProcessInterface::DEFAULT_TIMEOUT) : void {
$path = $this->configFactory
->get('package_manager.settings')
->get('log');
if ($path) {
$callback = new FileProcessOutputCallback($path, $callback);
$callback(OutputTypeEnum::OUT, sprintf("### Staging '%s' in %s\n", implode(' ', $composerCommand), $stagingDir->absolute()));
}
$this->decorated
->stage($composerCommand, $activeDir, $stagingDir, $callback, $timeout);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.