BuildSettingsCommand.php 994 B

12345678910111213141516171819202122232425262728293031323334
  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 __construct(string $name = NULL) {
  8. parent::__construct($name);
  9. echo "Constructing " . __CLASS__ . "\n";
  10. }
  11. public function configure() {
  12. parent::configure();
  13. $this
  14. ->setName('build-settings')
  15. ->setDescription('Build the settings.local.php file from the per-environment parameters and the settings template.')
  16. ->setDefinition([])
  17. ->setHelp(<<<EOT
  18. 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.
  19. EOT
  20. )
  21. ;
  22. }
  23. public function execute(InputInterface $input, OutputInterface $output) {
  24. $output->write("BuildSettingsCommand Executed", true);
  25. }
  26. }