Exemple #1
0
 /**
  * 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;
 }
Exemple #2
0
 /**
  * Returns a legacy configuration key.
  *
  * @param string $key
  *
  * @return array An array of functions
  */
 public function getConfiguration($key)
 {
     return $this->configuration->get($key);
 }