private function AcsfInitCommands::defaultSettingsPhpCreate in Acquia Cloud Site Factory Connector 8.2
Re-creates the default settings.php file.
Parameters
string $default_settings_php_path: The path to the default settings.php file.
1 call to AcsfInitCommands::defaultSettingsPhpCreate()
- AcsfInitCommands::init in acsf_init/
src/ Commands/ AcsfInitCommands.php - Make this repository compatible with Acquia Site Factory.
File
- acsf_init/
src/ Commands/ AcsfInitCommands.php, line 733
Class
- AcsfInitCommands
- Provides drush commands to set up a codebase for Acquia Cloud Site Factory.
Namespace
Drush\CommandsCode
private function defaultSettingsPhpCreate($default_settings_php_path) {
$result = file_put_contents($default_settings_php_path, "<?php\n\n" . $this
->defaultSettingsPhpIncludeGet() . "\n");
if ($result) {
$this
->logger()
->success(dt('File create success: sites/default/settings.php'));
}
else {
$this
->logger()
->error(dt('File create error: sites/default/settings.php'));
}
}