@trigger_error('Calling '.__METHOD__.'() without the $config_factory argument is deprecated in automatic_updates:2.0.1 and will be required before automatic_updates:3.0.0. See https://www.drupal.org/node/3300008.',E_USER_DEPRECATED);
$config_factory=\Drupal::configFactory();
}
$this->configFactory=$config_factory;
if(empty($file_system)){
@trigger_error('Calling '.__METHOD__.'() without the $file_system argument is deprecated in automatic_updates:2.0.1 and will be required before automatic_updates:3.0.0. See https://www.drupal.org/node/3300008.',E_USER_DEPRECATED);
$file_system=\Drupal::service('file_system');
}
$this->fileSystem=$file_system;
}
/**
@@ -84,4 +114,19 @@ class PathLocator {
returntrim($web_root,DIRECTORY_SEPARATOR);
}
/**
* Returns the directory where staging areas will be created.
*
* The staging root may be affected by site settings, so stages may wish to
* cache the value returned by this method, to ensure that they use the same
* staging root throughout their life cycle.
*
* @return string
* The absolute path of the directory where staging areas should be created.