protected function installDrupalSettingsLocal()
    {
        $sitesDefault = $this->getWebRoot() . '/sites/default';
        $shared = $this->getSharedDir();
        $settingsLocal = $sitesDefault . '/settings.local.php';

        if ($shared !== false && is_dir($sitesDefault) && !file_exists($settingsLocal)) {
            $sharedSettingsLocal = $shared . '/settings.local.php';
            $relative = $this->config->get('local.shared_dir') . '/settings.local.php';
            if (!file_exists($sharedSettingsLocal)) {
                $this->stdErr->writeln("Creating file: <info>$relative</info>");
                $this->fsHelper->copy(CLI_ROOT . '/resources/drupal/settings.local.php.dist', $sharedSettingsLocal);
                $this->stdErr->writeln(
                    'Edit this file to add your database credentials and other Drupal configuration.'
                );
            } else {
                $this->stdErr->writeln("Symlinking <info>$relative</info> into sites/default");
            }
            $this->fsHelper->symlink($sharedSettingsLocal, $settingsLocal);
        }
    }
protected function installDrupalSettingsLocal()
    {
        $sitesDefault = $this->getWebRoot() . '/sites/default';
        $shared = $this->getSharedDir();
        $settingsLocal = $sitesDefault . '/settings.local.php';

        if ($shared !== false && is_dir($sitesDefault) && !file_exists($settingsLocal)) {
            $sharedSettingsLocal = $shared . '/settings.local.php';
            $relative = $this->config->get('local.shared_dir') . '/settings.local.php';
            if (!file_exists($sharedSettingsLocal)) {
                $this->stdErr->writeln("Creating file: <info>$relative</info>");
                $this->fsHelper->copy(CLI_ROOT . '/resources/drupal/settings.local.php.dist', $sharedSettingsLocal);
                $this->stdErr->writeln(
                    'Edit this file to add your database credentials and other Drupal configuration.'
                );
            } else {
                $this->stdErr->writeln("Symlinking <info>$relative</info> into sites/default");
            }
            $this->fsHelper->symlink($sharedSettingsLocal, $settingsLocal);
        }
    }
protected function installDrupalSettingsLocal ( ) { $ sitesDefault = $ this -> getWebRoot ( ) . '/sites/default' ; $ shared = $ this -> getSharedDir ( ) ; $ settingsLocal = $ sitesDefault . '/settings.local.php' ; if ( $ shared !== false && is_dir ( $ sitesDefault ) && ! file_exists ( $ settingsLocal ) ) { $ sharedSettingsLocal = $ shared . '/settings.local.php' ; $ relative = $ this -> config -> get ( 'local.shared_dir' ) . '/settings.local.php' ; if ( ! file_exists ( $ sharedSettingsLocal ) ) { $ this -> stdErr -> writeln ( "Creating file: <info>$relative</info>" ) ; $ this -> fsHelper -> copy ( CLI_ROOT . '/resources/drupal/settings.local.php.dist' , $ sharedSettingsLocal ) ; $ this -> stdErr -> writeln ( 'Edit this file to add your database credentials and other Drupal configuration.' ) ; } else { $ this -> stdErr -> writeln ( "Symlinking <info>$relative</info> into sites/default" ) ; } $ this -> fsHelper -> symlink ( $ sharedSettingsLocal , $ settingsLocal ) ; } }
Create a settings.local.php for a Drupal site.

This helps with database setup, etc.
Create a settings . local . php for a Drupal site .