3 final class PhabricatorAuthManagementListFactorsWorkflow
4 extends PhabricatorAuthManagementWorkflow
{
6 protected function didConstruct() {
8 ->setName('list-factors')
9 ->setExamples('**list-factors**')
10 ->setSynopsis(pht('List available multi-factor authentication factors.'))
11 ->setArguments(array());
14 public function execute(PhutilArgumentParser
$args) {
15 $factors = PhabricatorAuthFactor
::getAllFactors();
17 foreach ($factors as $factor) {
20 $factor->getFactorKey(),
21 $factor->getFactorName());