Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / src / Command / Generate / EntityConfigCommand.php
index 5af38622c795f45f67fd1f030cb08caac814ab33..3c2ac3901d39780f06b8b643b62d09244df12929 100644 (file)
@@ -58,19 +58,21 @@ class EntityConfigCommand extends EntityCommand
         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']);
     }
 
     /**
@@ -93,8 +95,13 @@ class EntityConfigCommand extends EntityCommand
         $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,
+        ]);
     }
 }