mirror of https://github.com/flightphp/core
parent
7d22c12020
commit
b6c504fc99
@ -0,0 +1,12 @@
|
|||||||
|
You can stop the framework at any point by calling the `halt` method:
|
||||||
|
|
||||||
|
Flight::halt();
|
||||||
|
|
||||||
|
You can also specify an optional HTTP status code and message:
|
||||||
|
|
||||||
|
Flight::halt(200, 'Be right back...');
|
||||||
|
|
||||||
|
Calling `halt` will discard any response content up to that point.
|
||||||
|
If you want to stop the framework and output the current response, use the `stop` method:
|
||||||
|
|
||||||
|
Flight::stop();
|
Loading…
Reference in new issue