protected function newValidator(ResourceConfiguration $config)
    {
        $class = $config->getValidatorClass();

        return $config->isUsingYamlValidation() ?
            new YamlResourceValidator($config->getYamlValidation()) : new $class();
    }
protected function newValidator(ResourceConfiguration $config)
    {
        $class = $config->getValidatorClass();

        return $config->isUsingYamlValidation() ?
            new YamlResourceValidator($config->getYamlValidation()) : new $class();
    }
protected function newValidator ( ResourceConfiguration $ config ) { $ class = $ config -> getValidatorClass ( ) ; return $ config -> isUsingYamlValidation ( ) ? new YamlResourceValidator ( $ config -> getYamlValidation ( ) ) : new $ class ( ) ; }
Checks the configuration to decide what validation class to use.

@param ResourceConfiguration $config
@return YamlResourceValidator|object
Checks the configuration to decide what validation class to use .