We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d5e760 commit bbf0585Copy full SHA for bbf0585
frameworks/PHP/flight/composer.json
@@ -1,5 +1,5 @@
1
{
2
"require": {
3
- "mikecao/flight": "^2.0"
+ "mikecao/flight": "^3.0"
4
}
5
-}
+}
frameworks/PHP/flight/index.php
@@ -13,9 +13,8 @@
13
// Plaintext test
14
Flight::route('/plaintext', function() {
15
Flight::response()
16
- ->header('Content-Type', 'text/plain')
17
- ->write('Hello, World!')
18
- ->send();
+ ->header('Content-Type', 'text/plain');
+ echo 'Hello, World!';
19
});
20
21
// DB test
0 commit comments