Skip to content

Conversation

@dpagini
Copy link
Contributor

@dpagini dpagini commented Jul 6, 2017

I'm getting a Drupal Console error in my project b/c I'm extending the Drupal "ModuleInstaller" class. My code is then passing in my overridden class via services to Drupal Console. I'm not 100% sure this is right, but this feels like it should be accepting the ModuleInstallerInterface instead of just ModuleInstaller. I'm not that familiar with "ProxyClass"es which is what I'm removing, so I'm not confident this is definitely correct. Please advise if you don't think this is an appropriate bugfix.

Other:

  • Fixed comment styles.
  • Added @param to constructor comment.

@jmolivas
Copy link
Member

jmolivas commented Jul 6, 2017

Exactly we should be injecting interfaces instead of concrete classes.

@jmolivas jmolivas modified the milestone: RC-24 Jul 6, 2017
@jmolivas jmolivas merged commit 4746fb3 into hechoendrupal:master Jul 13, 2017
@jmolivas
Copy link
Member

@dpagini Thanks for your contribution, your PR was merged. This will be included on the next release.

@dpagini dpagini mentioned this pull request Oct 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants