public function applyValidator($value, array $configuration)
    {
        // Validate configuration
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $configuration = $resolver->resolve($configuration);

        $this->validate($value, $configuration);
    }
public function applyValidator($value, array $configuration)
    {
        // Validate configuration
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $configuration = $resolver->resolve($configuration);

        $this->validate($value, $configuration);
    }
public function applyValidator ( $ value , array $ configuration ) { // Validate configuration $ resolver = new OptionsResolver ( ) ; $ this -> configureOptions ( $ resolver ) ; $ configuration = $ resolver -> resolve ( $ configuration ) ; $ this -> validate ( $ value , $ configuration ) ; }
Apply the validator

@param mixed $value
@param array $configuration

@throws \Jb\Bundle\FileUploaderBundle\Exception\ValidationException
Apply the validator