for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016 Spomky-Labs
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace SpomkyLabs\JoseBundle\DependencyInjection\Source\JWKSetSource;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
final class JKU extends DownloadedJWKSet
{
/**
* {@inheritdoc}
public function createDefinition(ContainerBuilder $container, array $config)
$definition = new Definition('Jose\Object\JKUJWKSet');
$definition->setFactory([
new Reference('jose.factory.jwk'),
'createFromJKU',
]);
$definition->setArguments([
$config['url'],
$config['is_secured'],
null !== $config['cache'] ? new Reference($config['cache']) : null,
$config['cache_ttl'],
$config['is_https'],
return $definition;
}
public function getKeySet()
return 'jku';