From f08a2faa4a8110140324815f4689408f586c6556 Mon Sep 17 00:00:00 2001 From: Nikolay Lobachev Date: Thu, 11 Jan 2018 18:16:31 +0100 Subject: [PATCH] ReMove default assignment alias in abstract class. The alias should be set in the classes which extend the FormCommand (#3678) --- src/Command/Generate/FormBaseCommand.php | 1 + src/Command/Generate/FormCommand.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Command/Generate/FormBaseCommand.php b/src/Command/Generate/FormBaseCommand.php index 9e75348da..f3df567a0 100644 --- a/src/Command/Generate/FormBaseCommand.php +++ b/src/Command/Generate/FormBaseCommand.php @@ -13,6 +13,7 @@ protected function configure() { $this->setFormType('FormBase'); $this->setCommandName('generate:form'); + $this->setAliases(['gf']); parent::configure(); } } diff --git a/src/Command/Generate/FormCommand.php b/src/Command/Generate/FormCommand.php index 7d948ec05..e8c6b72fa 100644 --- a/src/Command/Generate/FormCommand.php +++ b/src/Command/Generate/FormCommand.php @@ -192,7 +192,7 @@ protected function configure() null, InputOption::VALUE_OPTIONAL, $this->trans('commands.generate.form.options.menu-link-desc') - )->setAliases(['gf']); + ); } /**