mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 02:32:42 +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;
|
const RAW_FACT_BUFFER_LIMIT = 128;
|
||||||
|
|
||||||
public function run() {
|
protected function run() {
|
||||||
$this->setEngines(PhabricatorFactEngine::loadAllEngines());
|
$this->setEngines(PhabricatorFactEngine::loadAllEngines());
|
||||||
while (!$this->shouldExit()) {
|
while (!$this->shouldExit()) {
|
||||||
$iterators = $this->getAllApplicationIterators();
|
$iterators = $this->getAllApplicationIterators();
|
||||||
|
|
|
@ -34,7 +34,7 @@ final class PhabricatorRepositoryPullLocalDaemon
|
||||||
/**
|
/**
|
||||||
* @task pull
|
* @task pull
|
||||||
*/
|
*/
|
||||||
public function run() {
|
protected function run() {
|
||||||
$argv = $this->getArgv();
|
$argv = $this->getArgv();
|
||||||
array_unshift($argv, __CLASS__);
|
array_unshift($argv, __CLASS__);
|
||||||
$args = new PhutilArgumentParser($argv);
|
$args = new PhutilArgumentParser($argv);
|
||||||
|
|
|
@ -16,7 +16,7 @@ final class PhabricatorBot extends PhabricatorDaemon {
|
||||||
private $config;
|
private $config;
|
||||||
private $pollFrequency;
|
private $pollFrequency;
|
||||||
|
|
||||||
public function run() {
|
protected function run() {
|
||||||
$argv = $this->getArgv();
|
$argv = $this->getArgv();
|
||||||
if (count($argv) !== 1) {
|
if (count($argv) !== 1) {
|
||||||
throw new Exception('usage: PhabricatorBot <json_config_file>');
|
throw new Exception('usage: PhabricatorBot <json_config_file>');
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
final class PhabricatorGarbageCollectorDaemon extends PhabricatorDaemon {
|
final class PhabricatorGarbageCollectorDaemon extends PhabricatorDaemon {
|
||||||
|
|
||||||
public function run() {
|
protected function run() {
|
||||||
$collectors = id(new PhutilSymbolLoader())
|
$collectors = id(new PhutilSymbolLoader())
|
||||||
->setAncestorClass('PhabricatorGarbageCollector')
|
->setAncestorClass('PhabricatorGarbageCollector')
|
||||||
->loadObjects();
|
->loadObjects();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
final class PhabricatorTaskmasterDaemon extends PhabricatorDaemon {
|
final class PhabricatorTaskmasterDaemon extends PhabricatorDaemon {
|
||||||
|
|
||||||
public function run() {
|
protected function run() {
|
||||||
$sleep = 0;
|
$sleep = 0;
|
||||||
do {
|
do {
|
||||||
$tasks = id(new PhabricatorWorkerLeaseQuery())
|
$tasks = id(new PhabricatorWorkerLeaseQuery())
|
||||||
|
|
Loading…
Reference in a new issue