src/Robo/Commands/Acsf/AcsfCommand.php
public function acsfInitialize($options = ['acsf-version' => '^2.47.0']) {
    $this->printPreamble();
    $this->acsfHooksInitialize();
    $this->say('Adding acsf module as a dependency...');
    $package_options = [
      'package_name' => 'drupal/acsf',
      'package_version' => $options['acsf-version'],
    ];
    $this->invokeCommand('internal:composer:require', $package_options);
    $this->say("In the future, you may pass in a custom value for acsf-version to override the default version, e.g., blt recipes:acsf:init:all --acsf-version='8.1.x-dev'");
    $this->acsfDrushInitialize();
    $this->say('Adding acsf-tools drush module as a dependency...');
    $package_options = [
      'package_name' => 'acquia/acsf-tools',
      'package_version' => 'dev-9.x-dev',
    ];
    $this->invokeCommand('internal:composer:require', $package_options);
    $this->say('<comment>ACSF Tools has been added. Some post-install configuration is necessary.</comment>');
    $this->say('<comment>See /drush/Commands/acsf_tools/README.md. </comment>');
    $this->say('<info>ACSF was successfully initialized.</info>');
    $this->say('Adding nedsbeds/profile_split_enable module as a dependency...');
    $package_options = [
      'package_name' => 'nedsbeds/profile_split_enable',
      'package_version' => '^1.0',
    ];
    $this->invokeCommand('internal:composer:require', $package_options);
    $this->say('<comment>nedsbeds/profile_split_enable module has been added.</comment>');
    $this->say('<comment>Enable the module and setup profile splits to utilize.</comment>');
    $project_yml = $this->getConfigValue('blt.config-files.project');
    $project_config = YamlMunge::parseFile($project_yml);
    if (!empty($project_config['modules'])) {
      $project_config['modules']['local']['uninstall'][] = 'acsf';
    }
    YamlMunge::writeFile($project_yml, $project_config);
  }
public function acsfInitialize($options = ['acsf-version' => '^2.47.0']) {
    $this->printPreamble();
    $this->acsfHooksInitialize();
    $this->say('Adding acsf module as a dependency...');
    $package_options = [
      'package_name' => 'drupal/acsf',
      'package_version' => $options['acsf-version'],
    ];
    $this->invokeCommand('internal:composer:require', $package_options);
    $this->say("In the future, you may pass in a custom value for acsf-version to override the default version, e.g., blt recipes:acsf:init:all --acsf-version='8.1.x-dev'");
    $this->acsfDrushInitialize();
    $this->say('Adding acsf-tools drush module as a dependency...');
    $package_options = [
      'package_name' => 'acquia/acsf-tools',
      'package_version' => 'dev-9.x-dev',
    ];
    $this->invokeCommand('internal:composer:require', $package_options);
    $this->say('<comment>ACSF Tools has been added. Some post-install configuration is necessary.</comment>');
    $this->say('<comment>See /drush/Commands/acsf_tools/README.md. </comment>');
    $this->say('<info>ACSF was successfully initialized.</info>');
    $this->say('Adding nedsbeds/profile_split_enable module as a dependency...');
    $package_options = [
      'package_name' => 'nedsbeds/profile_split_enable',
      'package_version' => '^1.0',
    ];
    $this->invokeCommand('internal:composer:require', $package_options);
    $this->say('<comment>nedsbeds/profile_split_enable module has been added.</comment>');
    $this->say('<comment>Enable the module and setup profile splits to utilize.</comment>');
    $project_yml = $this->getConfigValue('blt.config-files.project');
    $project_config = YamlMunge::parseFile($project_yml);
    if (!empty($project_config['modules'])) {
      $project_config['modules']['local']['uninstall'][] = 'acsf';
    }
    YamlMunge::writeFile($project_yml, $project_config);
  }
public function acsfInitialize ( $ options = [ 'acsf-version' => '^2.47.0' ] ) { $ this -> printPreamble ( ) ; $ this -> acsfHooksInitialize ( ) ; $ this -> say ( 'Adding acsf module as a dependency...' ) ; $ package_options = [ 'package_name' => 'drupal/acsf' , 'package_version' => $ options [ 'acsf-version' ] , ] ; $ this -> invokeCommand ( 'internal:composer:require' , $ package_options ) ; $ this -> say ( "In the future, you may pass in a custom value for acsf-version to override the default version, e.g., blt recipes:acsf:init:all --acsf-version='8.1.x-dev'" ) ; $ this -> acsfDrushInitialize ( ) ; $ this -> say ( 'Adding acsf-tools drush module as a dependency...' ) ; $ package_options = [ 'package_name' => 'acquia/acsf-tools' , 'package_version' => 'dev-9.x-dev' , ] ; $ this -> invokeCommand ( 'internal:composer:require' , $ package_options ) ; $ this -> say ( '<comment>ACSF Tools has been added. Some post-install configuration is necessary.</comment>' ) ; $ this -> say ( '<comment>See /drush/Commands/acsf_tools/README.md. </comment>' ) ; $ this -> say ( '<info>ACSF was successfully initialized.</info>' ) ; $ this -> say ( 'Adding nedsbeds/profile_split_enable module as a dependency...' ) ; $ package_options = [ 'package_name' => 'nedsbeds/profile_split_enable' , 'package_version' => '^1.0' , ] ; $ this -> invokeCommand ( 'internal:composer:require' , $ package_options ) ; $ this -> say ( '<comment>nedsbeds/profile_split_enable module has been added.</comment>' ) ; $ this -> say ( '<comment>Enable the module and setup profile splits to utilize.</comment>' ) ; $ project_yml = $ this -> getConfigValue ( 'blt.config-files.project' ) ; $ project_config = YamlMunge :: parseFile ( $ project_yml ) ; if ( ! empty ( $ project_config [ 'modules' ] ) ) { $ project_config [ 'modules' ] [ 'local' ] [ 'uninstall' ] [ ] = 'acsf' ; } YamlMunge :: writeFile ( $ project_yml , $ project_config ) ; }
Initializes ACSF support for project.

@command recipes:acsf:init:all

@aliases acsf acsf:init
@options acsf-version
Initializes ACSF support for project .