use cache for basepath
authorPhilipp Holzer <admin@philipp.info>
Mon, 18 Feb 2019 00:15:55 +0000 (01:15 +0100)
committerPhilipp Holzer <admin@philipp.info>
Mon, 18 Feb 2019 00:15:55 +0000 (01:15 +0100)
src/App.php

index f48abcf..f41d486 100644 (file)
@@ -219,7 +219,7 @@ class App
                $this->logger   = $logger;
                $this->config   = $config;
                $this->profiler = $profiler;
-               $this->basePath = $this->config->get('system', 'basepath');
+               $this->basePath = $this->config->getCache()->get('system', 'basepath');
 
                if (!Core\System::isDirectoryUsable($this->basePath, false)) {
                        throw new Exception('Basepath \'' . $this->basePath . '\' isn\'t usable.');