Changeset View
Changeset View
Standalone View
Standalone View
src/applications/doorkeeper/worker/DoorkeeperFeedWorker.php
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | /* -( Inherited )---------------------------------------------------------- */ | ||||
/** | /** | ||||
* Doorkeeper workers set up some context, then call | * Doorkeeper workers set up some context, then call | ||||
* @{method:publishFeedStory}. | * @{method:publishFeedStory}. | ||||
*/ | */ | ||||
final protected function doWork() { | final protected function doWork() { | ||||
if (PhabricatorEnv::getEnvConfig('phabricator.silent')) { | if (PhabricatorEnv::getEnvConfig('phabricator.silent')) { | ||||
$this->log("%s\n", pht('Phabricator is running in silent mode.')); | $this->log("%s\n", pht('%s is running in silent mode.', | ||||
PhabricatorPlatformSite::getName())); | |||||
return; | return; | ||||
} | } | ||||
if (!$this->isEnabled()) { | if (!$this->isEnabled()) { | ||||
$this->log( | $this->log( | ||||
"%s\n", | "%s\n", | ||||
pht("Doorkeeper worker '%s' is not enabled.", get_class($this))); | pht("Doorkeeper worker '%s' is not enabled.", get_class($this))); | ||||
return; | return; | ||||
Show All 34 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0