1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02: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:
Joshua Spence 2015-01-16 06:59:28 +11:00
parent 94b96ae533
commit 62dfcd1e55
5 changed files with 5 additions and 5 deletions

View file

@ -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();

View file

@ -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);

View file

@ -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>');

View file

@ -6,7 +6,7 @@
*/
final class PhabricatorGarbageCollectorDaemon extends PhabricatorDaemon {
public function run() {
protected function run() {
$collectors = id(new PhutilSymbolLoader())
->setAncestorClass('PhabricatorGarbageCollector')
->loadObjects();

View file

@ -2,7 +2,7 @@
final class PhabricatorTaskmasterDaemon extends PhabricatorDaemon {
public function run() {
protected function run() {
$sleep = 0;
do {
$tasks = id(new PhabricatorWorkerLeaseQuery())