| 1 | <?php |
||
| 7 | class ObfuscateProductionEmailAddresses implements MongoDbMigrations\MigrationInterface, MongoDbMigrations\ContextualMigrationInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * {@inheritdoc} |
||
| 11 | */ |
||
| 12 | public function getId() |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | */ |
||
| 20 | public function getCreateDate() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The obfuscation is relevant for both development and staging |
||
| 27 | * |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public function getContexts() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Obfuscate all email addresses |
||
| 37 | * |
||
| 38 | * In case a production backup is restored, all email addresses are going to be obfuscated. |
||
| 39 | * |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function execute(\MongoDB $db) |
||
| 47 | } |
||
| 48 |