/** * Extracts the configuration options from the input object and updates the configuration values in the config object. * * @param \MW_Config_Interface $conf Configuration object * @param array Associative list of database configurations * @throws \RuntimeException If the format of the options is invalid */ protected function setOptions(\MW_Config_Interface $conf) { foreach ((array) $this->option('option') as $option) { list($name, $value) = explode(':', $option); $conf->set($name, $value); } }
/** * Extracts the configuration options from the input object and updates the configuration values in the config object. * * @param \MW_Config_Interface $conf Configuration object * @param array $options List of option key/value pairs * @param array Associative list of database configurations */ protected function setOptions(\MW_Config_Interface $conf, array $options) { foreach ($options as $option) { list($name, $value) = explode(':', $option); $conf->set($name, $value); } }