public function validate($endpoint, $value, $configKey = 'upload_validators')
    {
        $validationConfiguration = $this->configuration->getValue($endpoint, $configKey);

        foreach ((array) $validationConfiguration as $validationType => $config) {
            $validator = $this->validators->getValidator($validationType);
            $validator->applyValidator($value, $config);
        }
    }
public function validate($endpoint, $value, $configKey = 'upload_validators')
    {
        $validationConfiguration = $this->configuration->getValue($endpoint, $configKey);

        foreach ((array) $validationConfiguration as $validationType => $config) {
            $validator = $this->validators->getValidator($validationType);
            $validator->applyValidator($value, $config);
        }
    }
public function validate ( $ endpoint , $ value , $ configKey = 'upload_validators' ) { $ validationConfiguration = $ this -> configuration -> getValue ( $ endpoint , $ configKey ) ; foreach ( ( array ) $ validationConfiguration as $ validationType => $ config ) { $ validator = $ this -> validators -> getValidator ( $ validationType ) ; $ validator -> applyValidator ( $ value , $ config ) ; } }
Validate by applying validators from validator chain

@param string $endpoint
@param mixed $value
@param string $configKey

@throws \Jb\Bundle\FileUploaderBundle\Exception\ValidationException
Validate by applying validators from validator chain