src/Robo/Commands/Generate/ConfigSplitCommand.php
protected function createSplitConfig($name) {
    $id = strtolower($name);
    $split_config_file = $this->configSyncDir . "/config_split.config_split.{$id}.yml";
    if (file_exists($split_config_file)) {
      $this->say("The config_split file for $name already exists. Skipping.");
    }
    else {
      $uuid = $this->uuidGenerator->generate();
      $config = $this->twig->render('config_split.config_split.env.yml.twig', [
        'uuid' => $uuid,
        'name' => $name,
        'id' => $id,
      ]);
      $this->createSplitDir($name);
      $this->writeSplitConfig($split_config_file, $config);
    }
  }
protected function createSplitConfig($name) {
    $id = strtolower($name);
    $split_config_file = $this->configSyncDir . "/config_split.config_split.{$id}.yml";
    if (file_exists($split_config_file)) {
      $this->say("The config_split file for $name already exists. Skipping.");
    }
    else {
      $uuid = $this->uuidGenerator->generate();
      $config = $this->twig->render('config_split.config_split.env.yml.twig', [
        'uuid' => $uuid,
        'name' => $name,
        'id' => $id,
      ]);
      $this->createSplitDir($name);
      $this->writeSplitConfig($split_config_file, $config);
    }
  }
protected function createSplitConfig ( $ name ) { $ id = strtolower ( $ name ) ; $ split_config_file = $ this -> configSyncDir . "/config_split.config_split.{$id}.yml" ; if ( file_exists ( $ split_config_file ) ) { $ this -> say ( "The config_split file for $name already exists. Skipping." ) ; } else { $ uuid = $ this -> uuidGenerator -> generate ( ) ; $ config = $ this -> twig -> render ( 'config_split.config_split.env.yml.twig' , [ 'uuid' => $ uuid , 'name' => $ name , 'id' => $ id , ] ) ; $ this -> createSplitDir ( $ name ) ; $ this -> writeSplitConfig ( $ split_config_file , $ config ) ; } }
Create a config_split configuration and directory for the given split.

@param string $name
The name of the split to create.
Create a config_split configuration and directory for the given split .