Transformer/EvaluatorTransformer.php
public function transform($value, array $options = [])
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $options = $resolver->resolve($options);

        $language = new ExpressionLanguage();

        return $language->evaluate(
            $options['expression'],
            $value
        );
    }
public function transform($value, array $options = [])
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $options = $resolver->resolve($options);

        $language = new ExpressionLanguage();

        return $language->evaluate(
            $options['expression'],
            $value
        );
    }
@param mixed $value
@param array $options

@throws \Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException
@throws \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
@throws \Symfony\Component\OptionsResolver\Exception\NoSuchOptionException
@throws \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
@throws \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
@throws \Symfony\Component\OptionsResolver\Exception\AccessException

@return string