src/Infrastructure/Config/Config.php
protected function validateConfig(SettingsInterface $settings)
    {
        foreach ($this->getRequiredSettings() as $required_setting) {
            if (is_null($settings->getValues($required_setting))) {
                throw new ConfigError(
                    "Missing mandatory setting '" . $required_setting . "' for config."
                );
            }
        }
    }
protected function validateConfig(SettingsInterface $settings)
    {
        foreach ($this->getRequiredSettings() as $required_setting) {
            if (is_null($settings->getValues($required_setting))) {
                throw new ConfigError(
                    "Missing mandatory setting '" . $required_setting . "' for config."
                );
            }
        }
    }
protected function validateConfig ( SettingsInterface $ settings ) { foreach ( $ this -> getRequiredSettings ( ) as $ required_setting ) { if ( is_null ( $ settings -> getValues ( $ required_setting ) ) ) { throw new ConfigError ( "Missing mandatory setting '" . $ required_setting . "' for config." ) ; } } }
Validate the given settings against any required rules.
This basic implementation just makes sure,
that all required settings are in place.

@param SettingsInterface $settings

@throws ConfigError
Validate the given settings against any required rules . This basic implementation just makes sure that all required settings are in place .