parent::__construct();
}
-
+ /**
+ * {@inheritdoc}
+ */
protected function configure()
{
$this->setEntityType('EntityConfig');
$this->setCommandName('generate:entity:config');
parent::configure();
-
$this->addOption(
'bundle-of',
null,
InputOption::VALUE_NONE,
$this->trans('commands.generate.entity.config.options.bundle-of')
- );
+ )
+ ->setAliases(['gec']);
}
/**
$bundle_of = $input->getOption('bundle-of');
$base_path = $input->getOption('base-path');
- $this
- ->generator
- ->generate($module, $entity_name, $entity_class, $label, $base_path, $bundle_of);
+ $this->generator->generate([
+ 'module' => $module,
+ 'entity_name' => $entity_name,
+ 'entity_class' => $entity_class,
+ 'label' => $label,
+ 'base_path' => $base_path,
+ 'bundle_of' => $bundle_of,
+ ]);
}
}