Small cleanup for easier local development.
Added a dev/ folder which will hold all the needed files for local development.
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
// For server.sh and php -S localhost
|
||||
if (PHP_SAPI === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
define('ROOT', __DIR__);
|
||||
require ROOT . '/src/bootstrap.php';
|
||||
require ROOT . '/src/router.php';
|
||||
|
||||
Reference in New Issue
Block a user