use cache for basepath
This commit is contained in:
parent
218e41a818
commit
95deff1685
|
@ -219,7 +219,7 @@ class App
|
||||||
$this->logger = $logger;
|
$this->logger = $logger;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
$this->profiler = $profiler;
|
$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)) {
|
if (!Core\System::isDirectoryUsable($this->basePath, false)) {
|
||||||
throw new Exception('Basepath \'' . $this->basePath . '\' isn\'t usable.');
|
throw new Exception('Basepath \'' . $this->basePath . '\' isn\'t usable.');
|
||||||
|
|
Loading…
Reference in a new issue