protected function configureArrayProperty($property, OptionsResolver $resolver)
    {
        $resolver
            ->setAllowedTypes($property, ['array', 'string'])
            ->setNormalizer($property, function (Options $options, $value) {
                return is_array($value) ? $value : explode(',', str_replace(' ', '', $value));
            });
    }
protected function configureArrayProperty($property, OptionsResolver $resolver)
    {
        $resolver
            ->setAllowedTypes($property, ['array', 'string'])
            ->setNormalizer($property, function (Options $options, $value) {
                return is_array($value) ? $value : explode(',', str_replace(' ', '', $value));
            });
    }
protected function configureArrayProperty ( $ property , OptionsResolver $ resolver ) { $ resolver -> setAllowedTypes ( $ property , [ 'array' , 'string' ] ) -> setNormalizer ( $ property , function ( Options $ options , $ value ) { return is_array ( $ value ) ? $ value : explode ( ',' , str_replace ( ' ' , '' , $ value ) ) ; } ) ; }
Configures an array property for OptionsResolver.

@param string          $property
@param OptionsResolver $resolver
Configures an array property for OptionsResolver .