-
Couldn't load subscription status.
- Fork 6
Issue #3017760: Support drush 9 #9
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
| * | ||
| * See these files for an example of injecting Drupal services: | ||
| * - http://cgit.drupalcode.org/devel/tree/src/Commands/DevelCommands.php | ||
| * - http://cgit.drupalcode.org/devel/tree/drush.services.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This docblock needs updating to describe the class itself.
| * Generates a database.sanitize.yml file. | ||
| * | ||
| * Generate database.sanitize.yml file for tables not specified on sanitize | ||
| * YML files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't correct, we do not generate a database.sanitize.yml file here, we just generate the content for it.
| services: | ||
| database_sanitize.commands: | ||
| class: \Drupal\database_sanitize\Commands\DatabaseSanitizeCommands | ||
| tags: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets inject here the database_sanitize service:
arguments: ['@database_sanitize']
Then add a constructor like on http://cgit.drupalcode.org/devel/tree/src/Commands/DevelCommands.php
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea - I probably won't get time to work on this over the next few days, so if you have time please could you take this forward?
|
Lets continue the work on the new branch 3017760 |
work in progress...