FluxBB\Actions\SetSettings::run PHP Method

run() protected method

Run the action and return a response for the user.
protected run ( ) : void
return void
    protected function run()
    {
        foreach ($this->input as $key => $value) {
            $key = 'o_' . $key;
            if ($this->config->has($key)) {
                $this->config->set($key, $value);
                $this->raise(new OptionWasChanged($key, $value));
            }
        }
        $this->config->save();
    }