Skip to content

Commit f7bb954

Browse files
committed
Making login link signature_properties option required
1 parent 6844cb8 commit f7bb954

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/LoginLinkFactory.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,34 @@ public function addConfiguration(NodeDefinition $node)
3636
$builder
3737
->scalarNode('check_route')
3838
->isRequired()
39-
->info('Route that will validate the login link - e.g. app_login_link_verify')
39+
->info('Route that will validate the login link - e.g. app_login_link_verify.')
4040
->end()
4141
->arrayNode('signature_properties')
42+
->isRequired()
4243
->prototype('scalar')->end()
4344
->requiresAtLeastOneElement()
44-
->info('An array of properties on your User that are used to sign the link. If any of these change, all existing links will become invalid')
45+
->info('An array of properties on your User that are used to sign the link. If any of these change, all existing links will become invalid.')
4546
->example(['email', 'password'])
4647
->end()
4748
->integerNode('lifetime')
4849
->defaultValue(600)
49-
->info('The lifetime of the login link in seconds')
50+
->info('The lifetime of the login link in seconds.')
5051
->end()
5152
->integerNode('max_uses')
5253
->defaultNull()
5354
->info('Max number of times a login link can be used - null means unlimited within lifetime.')
5455
->end()
5556
->scalarNode('used_link_cache')
56-
->info('Cache service id used to expired links of max_uses is set')
57+
->info('Cache service id used to expired links of max_uses is set.')
5758
->end()
5859
->scalarNode('success_handler')
59-
->info(sprintf('A service id that implements %s', AuthenticationSuccessHandlerInterface::class))
60+
->info(sprintf('A service id that implements %s.', AuthenticationSuccessHandlerInterface::class))
6061
->end()
6162
->scalarNode('failure_handler')
62-
->info(sprintf('A service id that implements %s', AuthenticationFailureHandlerInterface::class))
63+
->info(sprintf('A service id that implements %s.', AuthenticationFailureHandlerInterface::class))
6364
->end()
6465
->scalarNode('provider')
65-
->info('the user provider to load users from.')
66+
->info('The user provider to load users from.')
6667
->end()
6768
;
6869

0 commit comments

Comments
 (0)