We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c420bd0 commit 52b27ccCopy full SHA for 52b27cc
formwork/bootstrap.php
@@ -7,8 +7,8 @@
7
}
8
9
// Check if Composer autoloader is available
10
-if (file_exists($autoload = ROOT_PATH . '/vendor/autoload.php')) {
11
- require $autoload;
+if (file_exists(ROOT_PATH . '/vendor/autoload.php')) {
+ require ROOT_PATH . '/vendor/autoload.php';
12
} else {
13
require __DIR__ . '/views/errors/install.php';
14
exit;
index.php
@@ -7,5 +7,4 @@
require SYSTEM_PATH . '/bootstrap.php';
-$formwork = new App();
-$formwork->run();
+(new App())->run();
0 commit comments