src/Knp/DictionaryBundle/Dictionary/Factory/Combined.php
public function create(string $name, array $config): Dictionary
    {
        if (!isset($config['dictionaries'])) {
            throw new InvalidArgumentException(sprintf(
                'Dictionary of type %s must contains a key "dictionaries".',
                self::TYPE
            ));
        }

        $dictionaries = array_map(function ($name) {
            return $this->dictionaries[$name];
        }, $config['dictionaries']);

        return new Dictionary\Combined($name, $dictionaries);
    }
public function create(string $name, array $config): Dictionary
    {
        if (!isset($config['dictionaries'])) {
            throw new InvalidArgumentException(sprintf(
                'Dictionary of type %s must contains a key "dictionaries".',
                self::TYPE
            ));
        }

        $dictionaries = array_map(function ($name) {
            return $this->dictionaries[$name];
        }, $config['dictionaries']);

        return new Dictionary\Combined($name, $dictionaries);
    }
{@inheritdoc}