diff --git a/formwork/bootstrap.php b/formwork/bootstrap.php index 9ca5a8ac..6dc36d94 100644 --- a/formwork/bootstrap.php +++ b/formwork/bootstrap.php @@ -7,8 +7,8 @@ } // Check if Composer autoloader is available -if (file_exists($autoload = ROOT_PATH . '/vendor/autoload.php')) { - require $autoload; +if (file_exists(ROOT_PATH . '/vendor/autoload.php')) { + require ROOT_PATH . '/vendor/autoload.php'; } else { require __DIR__ . '/views/errors/install.php'; exit; diff --git a/index.php b/index.php index 978f321b..6e3bbe55 100644 --- a/index.php +++ b/index.php @@ -7,5 +7,4 @@ require SYSTEM_PATH . '/bootstrap.php'; -$formwork = new App(); -$formwork->run(); +(new App())->run();