/** * Update framework specific configuration files if possible. * * @return boolean True if successful * @throws Cake\Core\Exception\Exception */ public function updateConfigs() { Log::debug("Updating configuration files"); $knownSources = Hash::extract($this->Info->frameworkMeta, '{s}.source'); if (!in_array($this->options['source'], $knownSources)) { Log::debug("* Skipping: automated configuration updates are not supported for user specified applications"); return true; } Log::debug("Updating " . $this->options['framework_human'] . " config files"); if ($this->options['framework_short'] == 'cakephp3') { if (!$this->Execute->updateCake3Configuration($this->options['path'], $this->options['url'])) { throw new Exception("Error updating config file."); } } if ($this->options['framework_short'] == 'cakephp2') { if (!$this->Execute->updateCake2Configuration($this->options['path'], $this->options['url'])) { throw new Exception("Error updating config file."); } } return true; }