aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/Env.php
diff options
context:
space:
mode:
Diffstat (limited to 'ratatoeskr/sys/Env.php')
-rw-r--r--ratatoeskr/sys/Env.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/ratatoeskr/sys/Env.php b/ratatoeskr/sys/Env.php
index 63d079d..612418e 100644
--- a/ratatoeskr/sys/Env.php
+++ b/ratatoeskr/sys/Env.php
@@ -43,4 +43,15 @@ class Env
return Database::fromConfig($config);
});
}
+
+ /**
+ * The Base path of this ratatoeskr site.
+ * @return string
+ */
+ public function siteBasePath(): string
+ {
+ return $this->lazy("siteBasePath", static function () {
+ return dirname(dirname(dirname(__FILE__)));
+ });
+ }
}