/** * Merge with information from another route. * * @param array $values * @param bool $merge * @return static */ public function setSettings(array $values, $merge = false) { if (isset($values['as'])) { if ($this->name !== null && $merge !== false) { $this->setName($values['as'] . '.' . $this->name); } else { $this->setName($values['as']); } } if (isset($values['prefix'])) { $this->setUrl($values['prefix'] . $this->getUrl()); } parent::setSettings($values, $merge); return $this; }
/** * Merge with information from another route. * * @param array $values * @param bool $merge * @return static */ public function setSettings(array $values, $merge = false) { if (isset($values['prefix'])) { $this->setPrefix($values['prefix'] . $this->prefix); } if (isset($values['exceptionHandler'])) { $this->setExceptionHandlers((array) $values['exceptionHandler']); } if (isset($values['domain'])) { $this->setDomains((array) $values['domain']); } if (isset($values['as'])) { if ($this->name !== null && $merge !== false) { $this->name = $values['as'] . '.' . $this->name; } else { $this->name = $values['as']; } } parent::setSettings($values, $merge); return $this; }