@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix visibility of the `PhabricatorWorker::doWork()` methods

Summary: Ref T6822. This method is only called from within the `PhabricatorWorker::executeTask()` and `PhabricatorWorker::scheduleTask()` methods.

Test Plan: `grep`ped for `->doWork`.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T6822

Differential Revision: https://secure.phabricator.com/D11406

+8 -8
+1 -1
src/applications/harbormaster/worker/HarbormasterBuildWorker.php
··· 5 5 */ 6 6 final class HarbormasterBuildWorker extends HarbormasterWorker { 7 7 8 - public function doWork() { 8 + protected function doWork() { 9 9 $data = $this->getTaskData(); 10 10 $id = idx($data, 'buildID'); 11 11 $viewer = $this->getViewer();
+1 -1
src/applications/harbormaster/worker/HarbormasterTargetWorker.php
··· 30 30 return $target; 31 31 } 32 32 33 - public function doWork() { 33 + protected function doWork() { 34 34 $target = $this->loadBuildTarget(); 35 35 $build = $target->getBuild(); 36 36 $viewer = $this->getViewer();
+1 -1
src/applications/metamta/PhabricatorMetaMTAWorker.php
··· 11 11 return ($task->getFailureCount() * 15); 12 12 } 13 13 14 - public function doWork() { 14 + protected function doWork() { 15 15 $message = $this->loadMessage(); 16 16 if (!$message) { 17 17 throw new PhabricatorWorkerPermanentFailureException(
+1 -1
src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php
··· 27 27 return $this->commit = $commit; 28 28 } 29 29 30 - final public function doWork() { 30 + final protected function doWork() { 31 31 if (!$this->loadCommit()) { 32 32 return; 33 33 }
+1 -1
src/applications/repository/worker/PhabricatorRepositoryPushMailWorker.php
··· 3 3 final class PhabricatorRepositoryPushMailWorker 4 4 extends PhabricatorWorker { 5 5 6 - public function doWork() { 6 + protected function doWork() { 7 7 $viewer = PhabricatorUser::getOmnipotentUser(); 8 8 9 9 $task_data = $this->getTaskData();
+1 -1
src/applications/search/worker/PhabricatorSearchWorker.php
··· 2 2 3 3 final class PhabricatorSearchWorker extends PhabricatorWorker { 4 4 5 - public function doWork() { 5 + protected function doWork() { 6 6 $data = $this->getTaskData(); 7 7 8 8 $phid = idx($data, 'documentPHID');
+1 -1
src/infrastructure/sms/worker/PhabricatorSMSDemultiplexWorker.php
··· 3 3 final class PhabricatorSMSDemultiplexWorker 4 4 extends PhabricatorSMSWorker { 5 5 6 - public function doWork() { 6 + protected function doWork() { 7 7 $viewer = PhabricatorUser::getOmnipotentUser(); 8 8 9 9 $task_data = $this->getTaskData();
+1 -1
src/infrastructure/sms/worker/PhabricatorSMSSendWorker.php
··· 11 11 return phutil_units('1 minute in seconds'); 12 12 } 13 13 14 - public function doWork() { 14 + protected function doWork() { 15 15 $viewer = PhabricatorUser::getOmnipotentUser(); 16 16 17 17 $task_data = $this->getTaskData();