/** * Sets the value for the specified key * * @param string $name Path to the requested value like tree/node/classname * @param mixed $value Value that should be associated with the given path */ public function set($name, $value) { foreach ($this->prefixes as $prefix => $len) { if (strncmp($name, $prefix, $len) === 0) { return parent::set($name, $value); } } throw new \Aimeos\MW\Config\Exception(sprintf('Not allowed to set "%1$s" configuration', $name)); }
/** * Sets the value for the specified key. * * @param string $path Path to the requested value like tree/node/classname * @param string $value Value that should be associated with the given path */ public function set($path, $value) { $path = trim($path, '/'); parent::set($path, $value); apc_store($this->prefix . $path, $value); }