1 | <?php |
||
13 | class DbAnonymizeCommand extends Command |
||
14 | { |
||
15 | use ConfirmableTrait; |
||
16 | |||
17 | /** |
||
18 | * The console command name. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $name = 'db:anonymize'; |
||
23 | |||
24 | /** |
||
25 | * The console command description. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $description = 'Anonymize the database'; |
||
30 | |||
31 | /** |
||
32 | * Get the console command options. |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | protected function getOptions() |
||
46 | |||
47 | public function handle() |
||
51 | |||
52 | /** |
||
53 | * Execute the console command. |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | public function fire() |
||
71 | |||
72 | /** |
||
73 | * Get an anonymizer instance from the container. |
||
74 | * |
||
75 | * @param CoreAnonymizer $coreAnonymizer |
||
76 | * |
||
77 | * @return AbstractAnonymizer |
||
78 | */ |
||
79 | protected function getAnonymizer($coreAnonymizer) |
||
85 | |||
86 | /** |
||
87 | * Get core anonymizer from parent package. |
||
88 | * |
||
89 | * @return CoreAnonymizer |
||
90 | */ |
||
91 | protected function getCoreAnonymizer() |
||
100 | |||
101 | /** |
||
102 | * Get database configuration from laravel config |
||
103 | * |
||
104 | * @param string $selected |
||
105 | * |
||
106 | * @return array |
||
107 | */ |
||
108 | protected function getDatabaseConfiguration($selected) |
||
122 | } |
||
123 |