Contao\Config::update PHP Method

update() public method

Alias for Config::add()
public update ( string $strKey, mixed $varValue )
$strKey string The full variable name
$varValue mixed The configuration value
    public function update($strKey, $varValue)
    {
        $this->add($strKey, $varValue);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Alias for Config::add().
  *
  * @param string $key   The full variable name
  * @param mixed  $value The configuration value
  */
 public function update($key, $value)
 {
     $this->config->update($key, $value);
 }