Skip to content

Commit d2195cc

Browse files
committed
Fixed phpdoc and updated the changelog
1 parent 9e41ff4 commit d2195cc

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

CHANGELOG-2.1.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,32 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
3030

3131
### SecurityBundle
3232

33+
* refactored the user provider configuration. The configuration changed for the chain provider and the memory provider:
34+
35+
Before:
36+
37+
security:
38+
providers:
39+
my_chain_provider:
40+
providers: [my_memory_provider, my_doctrine_provider]
41+
my_memory_provider:
42+
users:
43+
toto: { password: foobar, roles: [ROLE_USER] }
44+
foo: { password: bar, roles: [ROLE_USER, ROLE_ADMIN] }
45+
46+
After:
47+
48+
security:
49+
providers:
50+
my_chain_provider:
51+
chain:
52+
providers: [my_memory_provider, my_doctrine_provider]
53+
my_memory_provider:
54+
memory:
55+
users:
56+
toto: { password: foobar, roles: [ROLE_USER] }
57+
foo: { password: bar, roles: [ROLE_USER, ROLE_ADMIN] }
58+
3359
* added a validator for the user password
3460

3561
### WebProfilerBundle

src/Symfony/Bundle/DoctrineBundle/DependencyInjection/Security/UserProvider/EntityFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Symfony\Component\DependencyInjection\Reference;
2020

2121
/**
22-
* HttpBasicFactory creates services for HTTP basic authentication.
22+
* EntityFactory creates services for Doctrine user provider.
2323
*
2424
* @author Fabien Potencier <fabien@symfony.com>
2525
* @author Christophe Coevoet <stof@notk.org>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Symfony\Component\DependencyInjection\Reference;
1919

2020
/**
21-
* HttpBasicFactory creates services for HTTP basic authentication.
21+
* InMemoryFactory creates services for the memory provider.
2222
*
2323
* @author Fabien Potencier <fabien@symfony.com>
2424
* @author Christophe Coevoet <stof@notk.org>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\DependencyInjection\ContainerBuilder;
1616

1717
/**
18-
* SecurityFactoryInterface is the interface for all security authentication listener.
18+
* UserProviderFactoryInterface is the interface for all user provider factories.
1919
*
2020
* @author Fabien Potencier <fabien@symfony.com>
2121
* @author Christophe Coevoet <stof@notk.org>

0 commit comments

Comments
 (0)