Config Class

Get instance

Get the instance of the Config class:

$config = Config::getInstance();

Clear instance

Clear the instance of the Config class:

$config->clearInstance();

Init

Init the class:

$config->init(string $configFile);

Get

Get item from config:

$config->get(string $key);

Set

Set item to config:

$config->set(string $key, string $value);

Parse

Parse from database url:

$config->parse(string $dbUrl);

Write

Write config to file:

$config->write();

Clear

Clear the config:

$config->clear();
Edit on GitHub