mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Minor, fix initialization order so config initialization does not fatal on phlog().
This commit is contained in:
parent
00f730d6e9
commit
9e2ec82094
1 changed files with 3 additions and 3 deletions
6
src/infrastructure/env/PhabricatorEnv.php
vendored
6
src/infrastructure/env/PhabricatorEnv.php
vendored
|
@ -103,10 +103,10 @@ final class PhabricatorEnv {
|
||||||
|
|
||||||
|
|
||||||
private static function initializeCommonEnvironment() {
|
private static function initializeCommonEnvironment() {
|
||||||
self::buildConfigurationSourceStack();
|
|
||||||
|
|
||||||
PhutilErrorHandler::initialize();
|
PhutilErrorHandler::initialize();
|
||||||
|
|
||||||
|
self::buildConfigurationSourceStack();
|
||||||
|
|
||||||
$tz = PhabricatorEnv::getEnvConfig('phabricator.timezone');
|
$tz = PhabricatorEnv::getEnvConfig('phabricator.timezone');
|
||||||
if ($tz) {
|
if ($tz) {
|
||||||
date_default_timezone_set($tz);
|
date_default_timezone_set($tz);
|
||||||
|
@ -156,7 +156,7 @@ final class PhabricatorEnv {
|
||||||
$stack->pushSource(
|
$stack->pushSource(
|
||||||
id(new PhabricatorConfigDatabaseSource('default'))
|
id(new PhabricatorConfigDatabaseSource('default'))
|
||||||
->setName(pht("Database")));
|
->setName(pht("Database")));
|
||||||
} catch (AphrontQueryException $recoverable) {
|
} catch (AphrontQueryException $exception) {
|
||||||
// If the database is not available, just skip this configuration
|
// If the database is not available, just skip this configuration
|
||||||
// source. This happens during `bin/storage upgrade`, `bin/conf` before
|
// source. This happens during `bin/storage upgrade`, `bin/conf` before
|
||||||
// schema setup, etc.
|
// schema setup, etc.
|
||||||
|
|
Loading…
Reference in a new issue