You are here

public function AcsfInitCommands::defaultSettingsPhpIncludeGet in Acquia Cloud Site Factory Connector 8.2

Returns the code to be added to the default settings.php file.

3 calls to AcsfInitCommands::defaultSettingsPhpIncludeGet()
AcsfInitCommands::defaultSettingsPhpCreate in acsf_init/src/Commands/AcsfInitCommands.php
Re-creates the default settings.php file.
AcsfInitCommands::defaultSettingsPhpUpdate in acsf_init/src/Commands/AcsfInitCommands.php
Updates the default settings.php with the ACSF specific script include.
AcsfInitCommands::initVerify in acsf_init/src/Commands/AcsfInitCommands.php
Verifies that acsf-init was successfully run in the current version.

File

acsf_init/src/Commands/AcsfInitCommands.php, line 696

Class

AcsfInitCommands
Provides drush commands to set up a codebase for Acquia Cloud Site Factory.

Namespace

Drush\Commands

Code

public function defaultSettingsPhpIncludeGet() {

  // Heredoc does not handle constants.
  $delimiter_start = self::ACSF_INIT_CODE_DELIMITER_START;
  $delimiter_end = self::ACSF_INIT_CODE_DELIMITER_END;
  return <<<INCLUDE
{<span class="php-variable">$delimiter_start</span>}
\$_acsf_infrastructure = include dirname(__FILE__) . '/acsf.settings.php';
if (\$_acsf_infrastructure === 'acsf-infrastructure') {
  return;
}
{<span class="php-variable">$delimiter_end</span>}
INCLUDE;
}