BuildSettingsCommand.php 801 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Fgm\Drupal\Composer;
  3. use Composer\Command\BaseCommand;
  4. use Symfony\Component\Console\Input\InputInterface;
  5. use Symfony\Component\Console\Output\OutputInterface;
  6. class BuildSettingsCommand extends BaseCommand {
  7. public function configure() {
  8. parent::configure();
  9. $this
  10. ->setName('build-settings')
  11. ->setDescription('Builds the *.settings.local.php files.')
  12. ->setDefinition([])
  13. ->setHelp(<<<EOT
  14. The build-settings command combines shared and per-environment parameters and passes them to the settings.local.php.twig template to build the settings/(build|run).settings.local.php files.
  15. EOT
  16. )
  17. ;
  18. }
  19. public function execute(InputInterface $input, OutputInterface $output) {
  20. $output->write("BuildSettingsCommand Executed", true);
  21. }
  22. }