<?php namespace LakeDrops\Docker4Drupal; use LakeDrops\Component\Composer\BaseCommand; use LakeDrops\Component\Composer\BaseHandlerInterface; 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(): BaseHandlerInterface { return Handler::class; } /** * {@inheritdoc} * * @throws \Twig\Error\LoaderError * @throws \Twig\Error\RuntimeError * @throws \Twig\Error\SyntaxError */ protected function execute(InputInterface $input, OutputInterface $output): int { parent::execute($input, $output); /** @var Handler $handler */ $handler = $this->handler; $handler->configureProject(TRUE); return 0; } }