Перевёрстан faq, удалены лишние файлы, composer-скрипнт для очистки кеша twig

This commit is contained in:
2022-09-01 23:57:29 +08:00
parent bd0538854c
commit 11b45444c7
7 changed files with 260 additions and 171 deletions

View File

@@ -2,12 +2,28 @@
declare(strict_types = 1);
use App\Core\Bootstrapper;
/*
|--------------------------------------------------------------------------
| Bootstrap all classes, settings, etc.
|--------------------------------------------------------------------------
*/
require '../bootstrap.php';
// autoload composer packages
require '../vendor/autoload.php';
// load .env parameters
Bootstrapper::bootEnv();
// set up framework according to its config
Bootstrapper::bootSettings();
// set up Twig template engine
Bootstrapper::bootTwig();
// set up routes defined in config file
Bootstrapper::bootRoutes();
/*
|--------------------------------------------------------------------------