Pico::setConfig PHP Method

setConfig() public method

This method allows you to modify Pico's config without creating a {@path "config/config.php"} or changing some of its variables before Pico starts processing. You can call this method between {@link Pico::__construct()} and {@link Pico::run()} only. Options set with this method cannot be overwritten by {@path "config/config.php"}.
See also: Pico::loadConfig()
See also: Pico::getConfig()
public setConfig ( array $config ) : void
$config array array with config variables
return void
    public function setConfig(array $config)
    {
        if ($this->locked) {
            throw new LogicException("You cannot modify Pico's config after processing has started");
        }
        $this->config = $config;
    }