Skip to content

Commit 75222c7

Browse files
committed
feat(SImpleServer): fixed an issue where the server could not initialize a file system route file if it had already been required by some other script.
1 parent dcb186d commit 75222c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Web/Implementations/Server/SimpleServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private function initializeRoutes():Result {
299299
}
300300

301301
unset($error);
302-
$handler = require_once($fileName);
302+
$handler = require($fileName);
303303
$cwd = dirname($location.$fileName)?:'';
304304

305305
if (!is_callable($handler)) {

0 commit comments

Comments
 (0)