BaseBuilderCommand.php 468 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types = 1);
  3. namespace Fgm\Drupal\Composer;
  4. use Composer\Command\BaseCommand;
  5. abstract class BaseBuilderCommand extends BaseCommand
  6. {
  7. protected function getBuilderConfig(): array
  8. {
  9. $conf = $this->getComposer()->getPackage()->getExtra()[Builder::NAME] ?? [];
  10. return $conf;
  11. }
  12. protected function getSettingsPath(): string
  13. {
  14. $settingsPath = getcwd() . "/settings";
  15. return $settingsPath;
  16. }
  17. }