Skip to content

Commit 045f5cc

Browse files
committed
Get version info sooner
1 parent 84cb3eb commit 045f5cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ function main() {
4545
__DIR__ . "/../etc/config.phoenix.json"
4646
));
4747

48+
VersionInfo::$version = VersionInfo::get();
49+
4850
// This must come after GlobalErrorHandler::createOverrides() because this
4951
// will call Rollbar::init() which will create its own error handlers for
5052
// Application Performance Monitoring (APM) purposes. This must also come
@@ -71,8 +73,6 @@ function main() {
7173
DatabaseDriver::$timeout = Common::$config->mysql->timeout;
7274
DatabaseDriver::$username = Common::$config->mysql->username;
7375

74-
VersionInfo::$version = VersionInfo::get();
75-
7676
$router = new Router(
7777
"BNETDocs\\Controllers\\",
7878
"BNETDocs\\Views\\"

0 commit comments

Comments
 (0)