Config

Provides an interface for managing configuration options.

To get an set options, either use \HotMelt\Config::get() and \HotMelt\Config::set()`, respectively, or take advantage of the fact that \HotMelt\Config allows arbitrary method overloading

\HotMelt\Config parses these configuration files:

  • Site/config.php
  • Site/config-<DOMAIN>.php

For a host name beginning with www., \HotMelt\Config will also try to load the configuration file for the corresponding host name without www..

Methods

Update the value for a configuration option.

set(string $name, mixed $value) : void
static

Arguments

$name

string

The name of the option to update.

$value

mixed

The value to set for $name.

Returns the value for a configuration option.

get(string $name) : mixed
static

Arguments

$name

string

The name of the option whose value you are interested in.

Response

mixed

Returns a snapshot of the current configuration.

allOptions() : array
static

Response

array