From 1ba7ba0ad7c58051db8b1dbecbcfca375c210930 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 19 Dec 2017 18:38:00 +1030 Subject: [PATCH] Pick up config when setting a new base path --- framework/core/src/Foundation/Site.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/core/src/Foundation/Site.php b/framework/core/src/Foundation/Site.php index 904e403de..e069366e8 100644 --- a/framework/core/src/Foundation/Site.php +++ b/framework/core/src/Foundation/Site.php @@ -95,6 +95,10 @@ class Site { $this->basePath = $basePath; + if (file_exists($file = $this->basePath.'/config.php')) { + $this->config = include $file; + } + return $this; }