Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Added missing config options
Browse files Browse the repository at this point in the history
  • Loading branch information
John Kleijn committed Apr 3, 2018
1 parent 00c7c9b commit 2e2e599
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ public function getConfigTreeBuilder()
->arrayNode('audience')
->prototype('scalar')->end()
->end()
->scalarNode('minIssueTime')->end()
->arrayNode('require')
->prototype('scalar')->end()
->end()
->scalarNode('leeway')->end()
->end()
->end()
->end()
Expand All @@ -46,3 +51,4 @@ public function getConfigTreeBuilder()
return $treeBuilder;
}
}

3 changes: 2 additions & 1 deletion src/DependencyInjection/KleijnWebJwtExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace KleijnWeb\JwtBundle\DependencyInjection;

use KleijnWeb\JwtBundle\Jwt\JwtKey;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
Expand All @@ -34,7 +35,7 @@ public function load(array $configs, ContainerBuilder $container)
foreach ($config['keys'] as $keyId => $keyConfig) {
$keyConfig['kid'] = $keyId;
$keyDefinition = new Definition('jwt.keys.' . $keyId);
$keyDefinition->setClass('KleijnWeb\JwtBundle\Jwt\JwtKey');
$keyDefinition->setClass(JwtKey::class);

if (isset($keyConfig['loader'])) {
$keyConfig['loader'] = new Reference($keyConfig['loader']);
Expand Down

0 comments on commit 2e2e599

Please sign in to comment.