File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,11 +26,6 @@ public static function run()
2626 ini_set ('display_errors ' , 'on ' );
2727 error_reporting (E_ALL );
2828
29- if (DIRECTORY_SEPARATOR === '\\' ) {
30- echo "Please run 'php windows.php' on windows system. " . PHP_EOL ;
31- exit ;
32- }
33-
3429 if (class_exists (Dotenv::class) && file_exists (run_path ('.env ' ))) {
3530 if (method_exists (Dotenv::class, 'createUnsafeImmutable ' )) {
3631 Dotenv::createUnsafeImmutable (run_path ())->load ();
@@ -41,6 +36,11 @@ public static function run()
4136
4237 static ::loadAllConfig (['route ' , 'container ' ]);
4338
39+ if (DIRECTORY_SEPARATOR === '\\' && empty (config ('server.listen ' ))) {
40+ echo "Please run 'php windows.php' on windows system. " . PHP_EOL ;
41+ exit ;
42+ }
43+
4444 $ errorReporting = config ('app.error_reporting ' );
4545 if (isset ($ errorReporting )) {
4646 error_reporting ($ errorReporting );
You can’t perform that action at this time.
0 commit comments