true, 'cookie_samesite' => 'Lax', ]); } $config = Config::load(BLOG_ROOT . '/config/site.json'); date_default_timezone_set((string) $config->get('timezone', 'UTC')); $repository = new ContentRepository( BLOG_ROOT . '/bl-content/pages', BLOG_ROOT . '/bl-content/databases/pages.json' ); $pdo = Database::connect(BLOG_ROOT . '/storage/database/blog.sqlite'); $comments = new CommentService($pdo, $config); $stats = new Stats(BLOG_ROOT . '/storage/stats/visits.csv', $config); return new App($config, $repository, $comments, $stats);