File tree Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ protected function handleCsrf(ServerRequestInterface $request):void {
270
270
);
271
271
$ tokens = $ protector ->protect ($ sharing );
272
272
$ this ->response = $ this ->response ->withHeader ($ this ->config ->getString ("security.csrf_header " ), $ tokens );
273
- }
273
+ }
274
274
275
275
}
276
276
@@ -293,20 +293,30 @@ protected function handleLogicExecution():void {
293
293
$ this ->injector ,
294
294
$ this ->config ->getString ("app.namespace " )
295
295
);
296
- $ logicExecutor ->invoke ("go_before " );
296
+ foreach ($ logicExecutor ->invoke ("go_before " ) as $ file ) {
297
+ // TODO: Hook up to debug output
298
+ }
297
299
298
300
$ input = $ this ->serviceContainer ->get (Input::class);
299
301
$ input ->when ("do " )->call (
300
- fn (InputData $ data ) => $ logicExecutor ->invoke (
301
- "do_ " . str_replace (
302
- "- " ,
303
- "_ " ,
304
- $ data ->getString ("do " )
305
- )
306
- )
302
+ function (InputData $ data )use ($ logicExecutor ) {
303
+ foreach ($ logicExecutor ->invoke (
304
+ "do_ " . str_replace (
305
+ "- " ,
306
+ "_ " ,
307
+ $ data ->getString ("do " )
308
+ )
309
+ ) as $ file ) {
310
+ // TODO: Hook up to debug output
311
+ }
312
+ }
307
313
);
308
- $ logicExecutor ->invoke ("go " );
309
- $ logicExecutor ->invoke ("go_after " );
314
+ foreach ($ logicExecutor ->invoke ("go " ) as $ file ) {
315
+ // TODO: Hook up to debug output
316
+ }
317
+ foreach ($ logicExecutor ->invoke ("go_after " ) as $ file ) {
318
+ // TODO: Hook up to debug output
319
+ }
310
320
}
311
321
312
322
protected function setupLogger (ConfigSection $ logConfig ):void {
You can’t perform that action at this time.
0 commit comments