/** * Set configuration value */ public function set($key, $value) { $success = \Configuration::updateValue($key, $value, false, $this->shop->id_shop_group, $this->shop->id); if (!$success) { throw new Exception("Could not update configuration"); } return $this; }
/** * Returns a legacy configuration key. * * @param string $key * * @return array An array of functions */ public function getConfiguration($key) { return $this->configuration->get($key); }