mirror of https://github.com/flightphp/core
parent
e1a5cd0c42
commit
7e1d393c38
@ -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