public function createService($name, array $config, ContainerBuilder $container)
    {
        foreach ($config as $key => $adapter) {
            if (array_key_exists($key, $this->getJWKSources())) {
                $this->getJWKSources()[$key]->create($container, 'key', $name, $adapter);

                return;
            }
        }

        throw new \LogicException(sprintf('The JWK definition "%s" is not configured.', $name));
    }
public function createService($name, array $config, ContainerBuilder $container)
    {
        foreach ($config as $key => $adapter) {
            if (array_key_exists($key, $this->getJWKSources())) {
                $this->getJWKSources()[$key]->create($container, 'key', $name, $adapter);

                return;
            }
        }

        throw new \LogicException(sprintf('The JWK definition "%s" is not configured.', $name));
    }
{@inheritdoc}