diff --git a/src/Site.php b/src/Site.php index 056905e..c2872cb 100644 --- a/src/Site.php +++ b/src/Site.php @@ -22,8 +22,6 @@ class Site implements SiteInterface { - private ContentRoot $file_system_root; - private PublicRoot $fileSystemPublicRoot; private RequestInterface|false $request = false; @@ -44,6 +42,9 @@ public static function initWithRequest( RequestInterface $request ): self|false { $self = self::init($fileSystemRoot, $domain); + if ($self === false) { + return false; + } return $self->withRequest($request); }