Skip to content

Conversation

@malcomio
Copy link

@malcomio malcomio commented Dec 4, 2018

work in progress...

Copy link

@vijaycs85 vijaycs85 left a 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
Copy link
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
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.

services:
database_sanitize.commands:
class: \Drupal\database_sanitize\Commands\DatabaseSanitizeCommands
tags:
Copy link
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
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
Copy link
Contributor

manuee commented Dec 13, 2018

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
Copy link
Contributor

manuee commented Dec 14, 2018

#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