Skip to content
Snippets Groups Projects
UpdateCommand.php 819 B
Newer Older
  • Learn to ignore specific revisions
  • <?php
    
    namespace LakeDrops\Docker4Drupal;
    
    use LakeDrops\Component\Composer\BaseCommand;
    use Symfony\Component\Console\Input\InputInterface;
    use Symfony\Component\Console\Output\OutputInterface;
    
    class UpdateCommand extends BaseCommand {
    
      /**
       * {@inheritdoc}
       */
      protected function configure() {
        $this->setName('lakedrops:docker4drupal');
        $this->setDescription('(Re-)Configure Docker for Drupal for this project.');
      }
    
      /**
       * {@inheritdoc}
       */
    
      public function getHandlerClass(): string {
    
        return Handler::class;
      }
    
      /**
       * {@inheritdoc}
       */
    
      protected function execute(InputInterface $input, OutputInterface $output): int {
    
        parent::execute($input, $output);
        /** @var Handler $handler */
        $handler = $this->handler;
    
        $handler->configureProject();