Skip to content

Commit

Permalink
Add symfony 2.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gfreeau committed Dec 3, 2015
1 parent 806a314 commit d03080f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DependencyInjection/Security/Factory/GetJWTFactory.php
Expand Up @@ -19,6 +19,7 @@ public function create(ContainerBuilder $container, $id, $config, $userProvider,
$container
->setDefinition($providerId, new DefinitionDecorator($config['authentication_provider']))
->replaceArgument(0, new Reference($userProvider))
->replaceArgument(1, new Reference($config['user_checker']))
->replaceArgument(2, $id)
;

Expand Down Expand Up @@ -87,6 +88,11 @@ public function addConfiguration(NodeDefinition $node)
->scalarNode('authentication_provider')
->defaultValue('security.authentication.provider.dao')
->end()
->scalarNode('user_checker')
->defaultValue('security.user_checker')
->treatNullLike('security.user_checker')
->info('The UserChecker to use when authenticating users in this firewall.')
->end()
->end();
}

Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -53,6 +53,7 @@ Usage
password_parameter: password
post_only: true
authentication_provider: security.authentication.provider.dao
user_checker: security.user_checker
success_handler: lexik_jwt_authentication.handler.authentication_success
failure_handler: lexik_jwt_authentication.handler.authentication_failure

Expand Down

0 comments on commit d03080f

Please sign in to comment.