public function createDefinition(ContainerBuilder $container, array $config)
    {
        if (true === $config['is_rotatable']) {
            $definition = new Definition('Jose\Object\RotatableJWKSet');
            $method = 'createRotatableKeySet';
        } else {
            $definition = new Definition('Jose\Object\StorableJWKSet');
            $method = 'createStorableKeySet';
        }

        $definition->setFactory([
            new Reference('jose.factory.jwk'),
            $method,
        ]);
        $definition->setArguments([
            $config['storage_path'],
            $config['key_configuration'],
            $config['nb_keys'],
        ]);

        return $definition;
    }
public function createDefinition(ContainerBuilder $container, array $config)
    {
        if (true === $config['is_rotatable']) {
            $definition = new Definition('Jose\Object\RotatableJWKSet');
            $method = 'createRotatableKeySet';
        } else {
            $definition = new Definition('Jose\Object\StorableJWKSet');
            $method = 'createStorableKeySet';
        }

        $definition->setFactory([
            new Reference('jose.factory.jwk'),
            $method,
        ]);
        $definition->setArguments([
            $config['storage_path'],
            $config['key_configuration'],
            $config['nb_keys'],
        ]);

        return $definition;
    }
{@inheritdoc}