From 2ec183778c8509df31a28d4d4ac3c5802b4ffb5c 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 --- src/Foundation/Site.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Foundation/Site.php b/src/Foundation/Site.php index 904e403de..e069366e8 100644 --- a/src/Foundation/Site.php +++ b/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; }