chg: [keycloak] sync script updated
parent
2f4b6ed2ff
commit
3bf52c701f
|
@ -16,10 +16,10 @@ class KeycloakSyncCommand extends Command
|
||||||
$this->loadModel('Users');
|
$this->loadModel('Users');
|
||||||
$results = $this->fetchTable()->syncWithKeycloak();
|
$results = $this->fetchTable()->syncWithKeycloak();
|
||||||
$tableData = [
|
$tableData = [
|
||||||
['Changes to', 'Count']
|
['Modification type', 'Count', 'Affected users']
|
||||||
];
|
];
|
||||||
foreach ($results as $k => $v) {
|
foreach ($results as $k => $v) {
|
||||||
$tableData[] = [$k, '<text-right>' . $v . '</text-right>'];
|
$tableData[] = [$k, '<text-right>' . count($v) . '</text-right>', '<text-right>' . implode(', ', $v) . '</text-right>'];
|
||||||
}
|
}
|
||||||
$io->out(__('Sync done. See the results below.'));
|
$io->out(__('Sync done. See the results below.'));
|
||||||
$io->helper('Table')->output($tableData);
|
$io->helper('Table')->output($tableData);
|
||||||
|
|
Loading…
Reference in New Issue