Remove all "FileHasObject" edge reads and writes
[phabricator.git] / src / applications / auth / management / PhabricatorAuthManagementListFactorsWorkflow.php
blob1e4ab7d8dfa71823c0db3cbe80838a5a68e385c2
1 <?php
3 final class PhabricatorAuthManagementListFactorsWorkflow
4 extends PhabricatorAuthManagementWorkflow {
6 protected function didConstruct() {
7 $this
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) {
18 echo tsprintf(
19 "%s\t%s\n",
20 $factor->getFactorKey(),
21 $factor->getFactorName());
24 return 0;