src/Knp/DictionaryBundle/ValueTransformer/Constant.php
public function transform($value)
    {
        $matches = [];

        preg_match($this->pattern, $value, $matches);

        return (new ReflectionClass($matches['class']))
            ->getConstant($matches['constant'])
        ;
    }
public function transform($value)
    {
        $matches = [];

        preg_match($this->pattern, $value, $matches);

        return (new ReflectionClass($matches['class']))
            ->getConstant($matches['constant'])
        ;
    }
{@inheritdoc}