8000 Added default service name for the Security component's Ldap providers · symfony/symfony@29e3d38 · GitHub
[go: up one dir, main page]

Skip to content

Commit 29e3d38

Browse files
committed
Added default service name for the Security component's Ldap providers
1 parent 2946932 commit 29e3d38

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function addConfiguration(NodeDefinition $node)
4545

4646
$node
4747
->children()
48-
->scalarNode('service')->end()
48+
->scalarNode('service')->defaultValue('ldap')->end()
4949
->scalarNode('dn_string')->defaultValue('{username}')->end()
5050
->end()
5151
;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function addConfiguration(NodeDefinition $node)
5555

5656
$node
5757
->children()
58-
->scalarNode('service')->end()
58+
->scalarNode('service')->defaultValue('ldap')->end()
5959
->scalarNode('dn_string')->defaultValue('{username}')->end()
6060
->end()
6161
;

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function addConfiguration(NodeDefinition $node)
4747
{
4848
$node
4949
->children()
50-
->scalarNode('service')->isRequired()->cannotBeEmpty()->end()
50+
->scalarNode('service')->isRequired()->cannotBeEmpty()->defaultValue('ldap')->end()
5151
->scalarNode('base_dn')->isRequired()->cannotBeEmpty()->end()
5252
->scalarNode('search_dn')->end()
5353
->scalarNode('search_password')->end()

src/Symfony/Component/Ldap/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@ have been marked as internal as they still needed some work.
1111
Breaking changes were introduced in Symfony 3.1, so code relying on
1212
previous version of the component will break with this version.
1313

14-
Documentation
15-
-------------
16-
17-
The documentation for the component can be found [online] [0].
18-
1914
Resources
2015
---------
2116

17+
* [Documentation](https://symfony.com/doc/current/components/filesystem/index.html)
2218
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
2319
* [Report issues](https://github.com/symfony/symfony/issues) and
2420
[send Pull Requests](https://github.com/symfony/symfony/pulls)

0 commit comments

Comments
 (0)
0