<?php
-/**
- * @file
- * Contains Drupal\metatag\Command\GenerateGroupCommand.
- */
namespace Drupal\metatag\Command;
use ConfirmationTrait;
/**
- * @var MetatagGroupGenerator
+ * @var \Drupal\metatag\Generator\MetatagGroupGenerator
*/
protected $generator;
- /** @var Manager */
+ /**
+ * @var \Drupal\Console\Extension\Manager
+ */
protected $extensionManager;
/**
- * @var ChainQueue
+ * @var \Drupal\Console\Core\Utils\ChainQueue
*/
protected $chainQueue;
/**
* GenerateTagCommand constructor.
*
- * @param MetatagTagGenerator $generator
- * @param Manager $extensionManager
- * @param ChainQueue $chainQueue
+ * @param Drupal\metatag\Generator\MetatagGroupGenerator $generator
+ * The generator object.
+ * @param Drupal\Console\Extension\Manager $extensionManager
+ * The extension manager object.
+ * @param Drupal\Console\Core\Utils\ChainQueue $chainQueue
+ * The chain queue object.
*/
public function __construct(
MetatagGroupGenerator $generator,
protected function execute(InputInterface $input, OutputInterface $output) {
$io = new DrupalStyle($input, $output);
- // @see use Drupal\Console\Command\ConfirmationTrait::confirmGeneration
+ // @see Drupal\Console\Command\ConfirmationTrait::confirmGeneration
if (!$this->confirmGeneration($io)) {
return 1;
}
$input->setOption('class-name', $class_name);
// --weight option.
- // @todo Automatically get the next integer value based upon the current
- // group.
+ // @todo Automatically get the next int value based upon the current group.
$weight = $input->getOption('weight');
if (is_null($weight)) {
$weight = $io->ask(