File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ private static function processInput(int $index): string {
73
73
74
74
private static function processOutput ($ response ): void {
75
75
echo (json_encode ($ response ));
76
+ exit ();
76
77
}
77
78
78
79
public static function dispatch (int $ index ): void {
@@ -83,17 +84,14 @@ public static function dispatch(int $index): void {
83
84
self ::processInput ($ index )
84
85
)
85
86
);
86
- exit ();
87
87
} catch (HttpRouteNotFoundException $ e ) {
88
88
self ::processOutput (
89
89
['status ' => "error " , 'message ' => "Path not found: {$ e ->getMessage ()}" ]
90
90
);
91
- exit ();
92
91
} catch (HttpMethodNotAllowedException $ e ) {
93
92
self ::processOutput (
94
93
['status ' => "error " , 'message ' => "Method not allowed, {$ e ->getMessage ()}" ]
95
94
);
96
- exit ();
97
95
}
98
96
}
99
97
You can’t perform that action at this time.
0 commit comments