extensionManager = $extensionManager; $this->generator = $generator; $this->validator = $validator; $this->stringConverter = $stringConverter; parent::__construct(); } 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') ); } /** * {@inheritdoc} */ protected function interact(InputInterface $input, OutputInterface $output) { parent::interact($input, $output); } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $module = $input->getOption('module'); $entity_class = $input->getOption('entity-class'); $entity_name = $input->getOption('entity-name'); $label = $input->getOption('label'); $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); } }