Skip to content

Commit 368f359

Browse files
committed
Use PhutilClassMapQuery instead of PhutilSymbolLoader
Summary: Use `PhutilClassMaQuery` instead of `PhutilSymbolLoader`, mostly for consistency. Depends on D13588. Test Plan: Poked around a bunch of pages. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D13589
1 parent 7938d9a commit 368f359

File tree

73 files changed

+180
-257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+180
-257
lines changed

scripts/almanac/manage_almanac.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
);
1515
$args->parseStandardArguments();
1616

17-
$workflows = id(new PhutilSymbolLoader())
17+
$workflows = id(new PhutilClassMapQuery())
1818
->setAncestorClass('AlmanacManagementWorkflow')
19-
->loadObjects();
19+
->execute();
2020
$workflows[] = new PhutilHelpArgumentWorkflow();
2121
$args->parseWorkflows($workflows);

scripts/cache/manage_cache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
);
1515
$args->parseStandardArguments();
1616

17-
$workflows = id(new PhutilSymbolLoader())
17+
$workflows = id(new PhutilClassMapQuery())
1818
->setAncestorClass('PhabricatorCacheManagementWorkflow')
19-
->loadObjects();
19+
->execute();
2020
$workflows[] = new PhutilHelpArgumentWorkflow();
2121
$args->parseWorkflows($workflows);

scripts/daemon/manage_daemons.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
);
1717
$args->parseStandardArguments();
1818

19-
$workflows = id(new PhutilSymbolLoader())
19+
$workflows = id(new PhutilClassMapQuery())
2020
->setAncestorClass('PhabricatorDaemonManagementWorkflow')
21-
->loadObjects();
21+
->execute();
2222
$workflows[] = new PhutilHelpArgumentWorkflow();
2323
$args->parseWorkflows($workflows);

scripts/diviner/diviner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
);
1515
$args->parseStandardArguments();
1616

17-
$workflows = id(new PhutilSymbolLoader())
17+
$workflows = id(new PhutilClassMapQuery())
1818
->setAncestorClass('DivinerWorkflow')
19-
->loadObjects();
19+
->execute();
2020
$workflows[] = new PhutilHelpArgumentWorkflow();
2121
$args->parseWorkflows($workflows);

scripts/drydock/drydock_control.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
);
1515
$args->parseStandardArguments();
1616

17-
$workflows = id(new PhutilSymbolLoader())
17+
$workflows = id(new PhutilClassMapQuery())
1818
->setAncestorClass('DrydockManagementWorkflow')
19-
->loadObjects();
19+
->execute();
2020
$workflows[] = new PhutilHelpArgumentWorkflow();
2121
$args->parseWorkflows($workflows);

scripts/fact/manage_facts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
);
1616
$args->parseStandardArguments();
1717

18-
$workflows = id(new PhutilSymbolLoader())
18+
$workflows = id(new PhutilClassMapQuery())
1919
->setAncestorClass('PhabricatorFactManagementWorkflow')
20-
->loadObjects();
20+
->execute();
2121
$workflows[] = new PhutilHelpArgumentWorkflow();
2222
$args->parseWorkflows($workflows);

scripts/files/manage_files.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
);
1515
$args->parseStandardArguments();
1616

17-
$workflows = id(new PhutilSymbolLoader())
17+
$workflows = id(new PhutilClassMapQuery())
1818
->setAncestorClass('PhabricatorFilesManagementWorkflow')
19-
->loadObjects();
19+
->execute();
2020
$workflows[] = new PhutilHelpArgumentWorkflow();
2121
$args->parseWorkflows($workflows);

scripts/lipsum/manage_lipsum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
);
1515
$args->parseStandardArguments();
1616

17-
$workflows = id(new PhutilSymbolLoader())
17+
$workflows = id(new PhutilClassMapQuery())
1818
->setAncestorClass('PhabricatorLipsumManagementWorkflow')
19-
->loadObjects();
19+
->execute();
2020
$workflows[] = new PhutilHelpArgumentWorkflow();
2121
$args->parseWorkflows($workflows);

scripts/mail/manage_mail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
);
1515
$args->parseStandardArguments();
1616

17-
$workflows = id(new PhutilSymbolLoader())
17+
$workflows = id(new PhutilClassMapQuery())
1818
->setAncestorClass('PhabricatorMailManagementWorkflow')
19-
->loadObjects();
19+
->execute();
2020
$workflows[] = new PhutilHelpArgumentWorkflow();
2121
$args->parseWorkflows($workflows);

scripts/repository/manage_repositories.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
);
1616
$args->parseStandardArguments();
1717

18-
$workflows = id(new PhutilSymbolLoader())
18+
$workflows = id(new PhutilClassMapQuery())
1919
->setAncestorClass('PhabricatorRepositoryManagementWorkflow')
20-
->loadObjects();
20+
->execute();
2121
$workflows[] = new PhutilHelpArgumentWorkflow();
2222
$args->parseWorkflows($workflows);

0 commit comments

Comments
 (0)