better singleton instance

This commit is contained in:
2025-05-07 20:39:12 -07:00
parent 642242511e
commit 036b6e8e34
2 changed files with 1 additions and 45 deletions

View File

@@ -24,6 +24,7 @@ class Site
{
if (self::$instance === null) {
self::$instance = new self([]);
self::$instance->bootstrap();
}
return self::$instance;
}
@@ -35,7 +36,6 @@ class Site
}
$this->config = $config;
$this->bootstrap();
}
private function bootstrap()