src/Markei/SilexWebsiteFramework/Application.php
protected function validateConfiguration($config)
    {
        $requiredFields = $this->getRequiredConfigurationFields();
        $missingFields = [];
        foreach ($requiredFields as $requiredField) {
            if (array_key_exists($requiredField, $config) === false) {
                $missingFields[] = $requiredField;
            }
        }
        if (count($missingFields) > 0) {
            throw new \RuntimeException('Some fields are not configured: ' . implode(', ', $missingFields));
        }
    }
protected function validateConfiguration($config)
    {
        $requiredFields = $this->getRequiredConfigurationFields();
        $missingFields = [];
        foreach ($requiredFields as $requiredField) {
            if (array_key_exists($requiredField, $config) === false) {
                $missingFields[] = $requiredField;
            }
        }
        if (count($missingFields) > 0) {
            throw new \RuntimeException('Some fields are not configured: ' . implode(', ', $missingFields));
        }
    }
protected function validateConfiguration ( $ config ) { $ requiredFields = $ this -> getRequiredConfigurationFields ( ) ; $ missingFields = [ ] ; foreach ( $ requiredFields as $ requiredField ) { if ( array_key_exists ( $ requiredField , $ config ) === false ) { $ missingFields [ ] = $ requiredField ; } } if ( count ( $ missingFields ) > 0 ) { throw new \ RuntimeException ( 'Some fields are not configured: ' . implode ( ', ' , $ missingFields ) ) ; } }
Validates the configuration
Checks if all the fields are present
@param array $config
Validates the configuration Checks if all the fields are present