DependencyInjection/Source/JWKSetSource/JWKSets.php
public function createDefinition(ContainerBuilder $container, array $config)
    {
        $definition = new Definition('Jose\Object\JWKSet');
        $definition->setFactory([
            new Reference('jose.factory.jwk'),
            'createKeySets',
        ]);
        foreach ($config['id'] as $key_set_id) {
            $ref = new Reference($key_set_id);
            $definition->addMethodCall('addKeySet', [$ref]);
        }

        return $definition;
    }
public function createDefinition(ContainerBuilder $container, array $config)
    {
        $definition = new Definition('Jose\Object\JWKSet');
        $definition->setFactory([
            new Reference('jose.factory.jwk'),
            'createKeySets',
        ]);
        foreach ($config['id'] as $key_set_id) {
            $ref = new Reference($key_set_id);
            $definition->addMethodCall('addKeySet', [$ref]);
        }

        return $definition;
    }
{@inheritdoc}