Open LOBsTerr opened 5 years ago
PR https://github.com/hechoendrupal/drupal-console/pull/3968
@jmolivas 1) I propose create a new class ModuleAwareCommand, which will be a Base classes for the commands, which generate the code inside of a module. 2) Like this we get rid off Module trait 3) All these commands are using the same traits, the same methods and fields
If you will confirm this idea, I will continue and will convert the code
@LOBsTerr I think this is a good idea, could you continue with this approach to be included in Drupal Console 2.0
?
Issue title
Because we moved the Code of Generators to separate service in many cases ExtensionManager is not used any more
Solution
Remove extension managers from the definition of the commands and constructors