示例#1
0
 /**
  * Update an existing config_text setting.
  *
  * @param string $config_name The name of the config_text setting you would
  * 	like to update
  * @param mixed $config_value The value of the config_text setting
  * @return null
  * @throws \src\db\migration\exception
  */
 public function update($config_name, $config_value)
 {
     if (is_null($this->config_text->get($config_name))) {
         throw new \src\db\migration\exception('CONFIG_NOT_EXIST', $config_name);
     }
     $this->config_text->set($config_name, $config_value);
 }