Skip to content
Snippets Groups Projects
PrepareCommand.php 784 B
Newer Older
  • Learn to ignore specific revisions
  • <?php
    
    namespace LakeDrops\DorgFlow;
    
    use LakeDrops\Component\Composer\BaseCommand;
    use Symfony\Component\Console\Input\InputInterface;
    use Symfony\Component\Console\Output\OutputInterface;
    
    class PrepareCommand extends BaseCommand {
    
      /**
       * {@inheritdoc}
       */
      protected function configure() {
        $this->setName('lakedrops:dorgflow');
        $this->setDescription('Prepare drupal.org projects for dorgflow utility.');
      }
    
      /**
       * {@inheritdoc}
       */
      public function getHandlerClass() {
        return Handler::class;
      }
    
      /**
       * {@inheritdoc}
       */
      protected function execute(InputInterface $input, OutputInterface $output) {
        parent::execute($input, $output);
        /** @var Handler $handler */
        $handler = $this->handler;
        $handler->prepareDevProjects();
      }
    
    }