File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 22namespace GT \WebEngine \Logic ;
33
44use 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 ??
You can’t perform that action at this time.
0 commit comments