X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FGenerate%2FTwigExtensionCommand.php;fp=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FGenerate%2FTwigExtensionCommand.php;h=182f408b866d1441390c50fe5c783d4f74b87dc8;hp=843803d4a52e1942ee9dfd84ad21272644cfa432;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/vendor/drupal/console/src/Command/Generate/TwigExtensionCommand.php b/vendor/drupal/console/src/Command/Generate/TwigExtensionCommand.php index 843803d4a..182f408b8 100644 --- a/vendor/drupal/console/src/Command/Generate/TwigExtensionCommand.php +++ b/vendor/drupal/console/src/Command/Generate/TwigExtensionCommand.php @@ -126,7 +126,7 @@ class TwigExtensionCommand extends Command // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration if (!$this->confirmGeneration($io)) { - return; + return 1; } $module = $input->getOption('module'); @@ -136,13 +136,14 @@ class TwigExtensionCommand extends Command // Add renderer service as first parameter. array_unshift($services, 'renderer'); - // @see Drupal\Console\Command\Shared\ServicesTrait::buildServices $build_services = $this->buildServices($services); $this->generator->generate($module, $name, $class, $build_services); $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']); + + return 0; } /**