/** * Preparing parameters of config the application. */ protected function prepare() { if (!isset($this->_params)) { $module = Module::getInstance(); if ($module->enableCaching) { if (($this->_params = $module->cache->get([__CLASS__, 'params'])) === false) { $this->_params = Config::paramsArray(); $module->cache->set([__CLASS__, 'params'], $this->_params); } } else { $this->_params = Config::paramsArray(); } } }