mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Fix the visibility of PhutilDaemon::run
methods
Summary: Ref T6822. This method is only called from `PhutilDaemon::execute()` and can be made `protected`. Test Plan: See D11404. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6822 Differential Revision: https://secure.phabricator.com/D11405
This commit is contained in:
parent
94b96ae533
commit
62dfcd1e55
5 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@ final class PhabricatorFactDaemon extends PhabricatorDaemon {
|
|||
|
||||
const RAW_FACT_BUFFER_LIMIT = 128;
|
||||
|
||||
public function run() {
|
||||
protected function run() {
|
||||
$this->setEngines(PhabricatorFactEngine::loadAllEngines());
|
||||
while (!$this->shouldExit()) {
|
||||
$iterators = $this->getAllApplicationIterators();
|
||||
|
|
|
@ -34,7 +34,7 @@ final class PhabricatorRepositoryPullLocalDaemon
|
|||
/**
|
||||
* @task pull
|
||||
*/
|
||||
public function run() {
|
||||
protected function run() {
|
||||
$argv = $this->getArgv();
|
||||
array_unshift($argv, __CLASS__);
|
||||
$args = new PhutilArgumentParser($argv);
|
||||
|
|
|
@ -16,7 +16,7 @@ final class PhabricatorBot extends PhabricatorDaemon {
|
|||
private $config;
|
||||
private $pollFrequency;
|
||||
|
||||
public function run() {
|
||||
protected function run() {
|
||||
$argv = $this->getArgv();
|
||||
if (count($argv) !== 1) {
|
||||
throw new Exception('usage: PhabricatorBot <json_config_file>');
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
final class PhabricatorGarbageCollectorDaemon extends PhabricatorDaemon {
|
||||
|
||||
public function run() {
|
||||
protected function run() {
|
||||
$collectors = id(new PhutilSymbolLoader())
|
||||
->setAncestorClass('PhabricatorGarbageCollector')
|
||||
->loadObjects();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
final class PhabricatorTaskmasterDaemon extends PhabricatorDaemon {
|
||||
|
||||
public function run() {
|
||||
protected function run() {
|
||||
$sleep = 0;
|
||||
do {
|
||||
$tasks = id(new PhabricatorWorkerLeaseQuery())
|
||||
|
|
Loading…
Reference in a new issue