Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator interface implementation #294

Merged

Conversation

LOBsTerr
Copy link
Member

No description provided.

@@ -17,7 +17,7 @@
*
* @package Drupal\Console\Core\Generator
*/
abstract class Generator
abstract class Generator implements GeneratorInterface
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LOBsTerr Thanks for the PR.

By merging this change, we are going to break custom generators at custom and contrib modules.

What chould be our choices?

  • Make not an announcement about this change and make it mandatory for 2.0.
  • Show a message when excuting DrupalConsole providing instruction about what to do.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmolivas I prefer get a feedback as soon as possible. Plus we give users a chance already right use it, but if you prefer to keep it until 2.0 for me it is also ok

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmolivas I changed my mind, it is better to give sometime for users. Let' make our users happy

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will merge this PR and rollback this line to

abstract class Generator

Then update the docs to suggest people write generator classes as:

class myGenerator extends Generator implements GeneratorInterface

@jmolivas jmolivas merged commit 8abd821 into hechoendrupal:master Jan 30, 2018
@jmolivas
Copy link
Member

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

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