Differential D14073 Diff 34742 src/applications/auth/management/PhabricatorAuthManagementRefreshWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/management/PhabricatorAuthManagementRefreshWorkflow.php
| Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | public function execute(PhutilArgumentParser $args) { | ||||
| if (!$accounts) { | if (!$accounts) { | ||||
| throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
| pht('No accounts match the arguments!')); | pht('No accounts match the arguments!')); | ||||
| } else { | } else { | ||||
| $console->writeOut( | $console->writeOut( | ||||
| "%s\n", | "%s\n", | ||||
| pht( | pht( | ||||
| 'Found %s account(s) to refresh.', | 'Found %s account(s) to refresh.', | ||||
| new PhutilNumber(count($accounts)))); | phutil_count($accounts))); | ||||
| } | } | ||||
| $providers = PhabricatorAuthProvider::getAllEnabledProviders(); | $providers = PhabricatorAuthProvider::getAllEnabledProviders(); | ||||
| foreach ($accounts as $account) { | foreach ($accounts as $account) { | ||||
| $console->writeOut( | $console->writeOut( | ||||
| "%s\n", | "%s\n", | ||||
| pht( | pht( | ||||
| ▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines | |||||