X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FCron%2FReleaseCommand.php;h=cc3fa6120f68fd923208e07099b9d921fc63e9fa;hp=2fa9541ad813332b3176858861f51b0cafc64154;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/drupal/console/src/Command/Cron/ReleaseCommand.php b/vendor/drupal/console/src/Command/Cron/ReleaseCommand.php index 2fa9541ad..cc3fa6120 100644 --- a/vendor/drupal/console/src/Command/Cron/ReleaseCommand.php +++ b/vendor/drupal/console/src/Command/Cron/ReleaseCommand.php @@ -10,16 +10,12 @@ namespace Drupal\Console\Command\Cron; use Symfony\Component\Config\Definition\Exception\Exception; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Command\Command; +use Drupal\Console\Core\Command\Command; use Drupal\Core\Lock\LockBackendInterface; use Drupal\Console\Core\Utils\ChainQueue; -use Drupal\Console\Core\Command\Shared\CommandTrait; -use Drupal\Console\Core\Style\DrupalStyle; class ReleaseCommand extends Command { - use CommandTrait; - /** * @var LockBackendInterface */ @@ -52,7 +48,8 @@ class ReleaseCommand extends Command { $this ->setName('cron:release') - ->setDescription($this->trans('commands.cron.release.description')); + ->setDescription($this->trans('commands.cron.release.description')) + ->setAliases(['cror']); } /** @@ -60,14 +57,12 @@ class ReleaseCommand extends Command */ protected function execute(InputInterface $input, OutputInterface $output) { - $io = new DrupalStyle($input, $output); - try { $this->lock->release('cron'); - $io->info($this->trans('commands.cron.release.messages.released')); + $this->getIo()->info($this->trans('commands.cron.release.messages.released')); } catch (Exception $e) { - $io->error($e->getMessage()); + $this->getIo()->error($e->getMessage()); return 1; }