Skip to content

Commit 2540733

Browse files
committed
Merge remote-tracking branch 'origin/new-v5--refactor' into new-v5--refactor
2 parents 3991392 + c78f373 commit 2540733

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/Dispatch/Dispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function generateResponse():Response {
204204
// function's responsibility is to execute the logic that builds the response.
205205
// Since this involves running user code that may throw errors, we execute each
206206
// step individually to ensure proper error handling throughout the process.
207-
if(!$this->viewAssembly->containsDistinctFile()) {
207+
if(!$this->viewAssembly->containsDistinctFile() && !$this->logicAssembly->containsDistinctFile()) {
208208
$this->response = $this->response->withStatus(StatusCode::NOT_FOUND);
209209
throw new HttpNotFound();
210210
}

src/Logic/LogicStreamHandler.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace GT\WebEngine\Logic;
33

44
use Closure;
5+
use Gt\Routing\LogicStream\LogicStreamWrapper;
56

67
/**
78
* Handles the registration of a custom stream wrapper, as defined by the
@@ -12,8 +13,8 @@ class LogicStreamHandler {
1213
private Closure $streamWrapperRegisterCallback;
1314

1415
public function __construct(
15-
private readonly string $streamName = WebEngineLogicStreamWrapper::STREAM_NAME,
16-
private readonly string $logicStreamClassName = WebEngineLogicStreamWrapper::class,
16+
private readonly string $streamName = LogicStreamWrapper::STREAM_NAME,
17+
private readonly string $logicStreamClassName = LogicStreamWrapper::class,
1718
?Closure $streamWrapperRegisterCallback = null,
1819
) {
1920
$this->streamWrapperRegisterCallback = $streamWrapperRegisterCallback ??

0 commit comments

Comments
 (0)