Skip to content

Commit 923a43c

Browse files
committed
Merge branch 'release/0.9.45'
2 parents ce64e3f + 84ca9ad commit 923a43c

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

.version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"strategy": "semver",
33
"major": 0,
44
"minor": 9,
5-
"patch": 44,
5+
"patch": 45,
66
"build": 0
77
}

src/Mvc/Application.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ public function __construct( string $version ="1.0.0", ?ISettingSource $source =
5454
$this->setHandleErrors( true );
5555
$this->fs = $fs ?? new RealFileSystem();
5656

57+
// Must call parent first to initialize settings
5758
parent::__construct( $version, $source );
5859

59-
Registry::getInstance()->set( 'BasePath', $this->getBasePath() );
60-
Registry::getInstance()->set( 'App', $this );
61-
62-
// Load passthrough exceptions configuration
60+
// Load passthrough exceptions BEFORE anything else that might throw
61+
// This must happen before loadRequests/loadRoutes/etc
6362
$passthroughExceptions = $this->getSetting( 'exceptions', 'passthrough' );
6463
if( is_array( $passthroughExceptions ) )
6564
{
@@ -73,6 +72,9 @@ public function __construct( string $version ="1.0.0", ?ISettingSource $source =
7372
\Neuron\Log\Log::debug( 'No passthrough exceptions configured' );
7473
}
7574

75+
Registry::getInstance()->set( 'BasePath', $this->getBasePath() );
76+
Registry::getInstance()->set( 'App', $this );
77+
7678
$this->loadRequests();
7779
$this->loadRoutes();
7880
}

versionlog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 0.9.45 2026-01-12
2+
13
## 0.9.44 2026-01-12
24

35
## 0.9.43 2026-01-12

0 commit comments

Comments
 (0)