Skip to content

Issue #3017760: Support drush 9#9

Merged
manuee merged 9 commits into
EdisonLabs:3017760from
malcomio:drush9
Dec 13, 2018
Merged

Issue #3017760: Support drush 9#9
manuee merged 9 commits into
EdisonLabs:3017760from
malcomio:drush9

Conversation

@malcomio

@malcomio malcomio commented Dec 4, 2018

Copy link
Copy Markdown

work in progress...

Comment thread composer.json

@vijaycs85 vijaycs85 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good to me!

Comment thread src/Commands/DatabaseSanitizeCommands.php
*
* 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

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor

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.

Comment thread drush.services.yml
services:
database_sanitize.commands:
class: \Drupal\database_sanitize\Commands\DatabaseSanitizeCommands
tags:

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Author

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?

@manuee manuee changed the base branch from 8.x-1.x to 3017760 December 13, 2018 12:16
@manuee manuee merged commit ddaa339 into EdisonLabs:3017760 Dec 13, 2018
@manuee

manuee commented Dec 13, 2018

Copy link
Copy Markdown
Contributor

Lets continue the work on the new branch 3017760

vijaycs85 added a commit to vijaycs85/database_sanitize that referenced this pull request Dec 13, 2018
@manuee

manuee commented Dec 14, 2018

Copy link
Copy Markdown
Contributor

#13

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.

3 participants