Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/env/PhabricatorEnv.php
| Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | private static function initializeCommonEnvironment() { | ||||
| // subprocess environments. | // subprocess environments. | ||||
| $_ENV['PATH'] = $env_path; | $_ENV['PATH'] = $env_path; | ||||
| PhabricatorEventEngine::initialize(); | PhabricatorEventEngine::initialize(); | ||||
| $translation = PhabricatorEnv::newObjectFromConfig('translation.provider'); | $translation = PhabricatorEnv::newObjectFromConfig('translation.provider'); | ||||
| PhutilTranslator::getInstance() | PhutilTranslator::getInstance() | ||||
| ->setLanguage($translation->getLanguage()) | ->setLanguage($translation->getLanguage()) | ||||
| ->addTranslations($translation->getTranslations()); | ->addTranslations($translation->getCleanTranslations()); | ||||
| } | } | ||||
| private static function buildConfigurationSourceStack() { | private static function buildConfigurationSourceStack() { | ||||
| self::dropConfigCache(); | self::dropConfigCache(); | ||||
| $stack = new PhabricatorConfigStackSource(); | $stack = new PhabricatorConfigStackSource(); | ||||
| self::$sourceStack = $stack; | self::$sourceStack = $stack; | ||||
| ▲ Show 20 Lines • Show All 454 Lines • Show Last 20 Lines | |||||