Skip to content

Commit b66a5e8

Browse files
committed
refactor: update entry controller
1 parent 0165bd3 commit b66a5e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

public/index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
use Bow\Http\Request;
66
use Bow\Http\Response;
77

8-
if (file_exists(__DIR__ . '/../var/storage/maintenance.php')) {
9-
require __DIR__ . '/../var/storage/maintenance.php';
10-
}
11-
128
// Register The Auto Loader
139
if (!file_exists(__DIR__ . "/../vendor/autoload.php")) {
14-
die("Please install the dependencies with 'composer update'");
10+
die("Please install the dependencies with 'composer update'");
11+
}
12+
13+
if (file_exists(__DIR__ . '/../var/storage/maintenance.php')) {
14+
require __DIR__ . '/../var/storage/maintenance.php';
1515
}
1616

1717
require __DIR__."/../vendor/autoload.php";

0 commit comments

Comments
 (0)