src/Tasks.php
public function prepareLocal() {
    $do_composer_install = TRUE;
    $project_properties = $this->getProjectProperties();
    $grab_database = $this->confirm("Load a database backup?");
    if ($grab_database == 'y') {
      $do_composer_install = $this->getDatabaseOfTruth();
    }
    if ($do_composer_install) {
      $this->taskComposerInstall()
        ->optimizeAutoloader()
        ->run();
      $drush_commands = [
        'drush_clear_cache' => 'drush cr',
        'drush_update_database' => 'drush updb',
        'drush_grab_config_changes' => 'drush config-import -y',
        'drush_grab_config_local_changes' => 'drush config-split:import local -y',
      ];
      $this->taskExec(implode(' && ', $drush_commands))
        ->dir($project_properties['web_root'])
        ->run();
    }
  }
public function prepareLocal() {
    $do_composer_install = TRUE;
    $project_properties = $this->getProjectProperties();
    $grab_database = $this->confirm("Load a database backup?");
    if ($grab_database == 'y') {
      $do_composer_install = $this->getDatabaseOfTruth();
    }
    if ($do_composer_install) {
      $this->taskComposerInstall()
        ->optimizeAutoloader()
        ->run();
      $drush_commands = [
        'drush_clear_cache' => 'drush cr',
        'drush_update_database' => 'drush updb',
        'drush_grab_config_changes' => 'drush config-import -y',
        'drush_grab_config_local_changes' => 'drush config-split:import local -y',
      ];
      $this->taskExec(implode(' && ', $drush_commands))
        ->dir($project_properties['web_root'])
        ->run();
    }
  }
public function prepareLocal ( ) { $ do_composer_install = TRUE ; $ project_properties = $ this -> getProjectProperties ( ) ; $ grab_database = $ this -> confirm ( "Load a database backup?" ) ; if ( $ grab_database == 'y' ) { $ do_composer_install = $ this -> getDatabaseOfTruth ( ) ; } if ( $ do_composer_install ) { $ this -> taskComposerInstall ( ) -> optimizeAutoloader ( ) -> run ( ) ; $ drush_commands = [ 'drush_clear_cache' => 'drush cr' , 'drush_update_database' => 'drush updb' , 'drush_grab_config_changes' => 'drush config-import -y' , 'drush_grab_config_local_changes' => 'drush config-split:import local -y' , ] ; $ this -> taskExec ( implode ( ' && ' , $ drush_commands ) ) -> dir ( $ project_properties [ 'web_root' ] ) -> run ( ) ; } }
Prepare your local machine for development.

Pulls the database of truth, brings the database in line with local config,
and enables local development modules, including config suite.
Prepare your local machine for development .