Skip to content

Commit bc9febe

Browse files
committed
Merge pull request #2349 from lyrixx/patch-ref-sercu
[2.1][Security] Fixed typo + some enhancement
2 parents ce885a4 + a3d5856 commit bc9febe

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

reference/configuration/security.rst

+20-20
Original file line numberDiff line numberDiff line change
@@ -56,34 +56,34 @@ Each part will be explained in the next section.
5656
iterations: 5000
5757
5858
# Example options/values for what a custom encoder might look like
59-
Acme\Your\Class\Name:
60-
algorithm: ~
61-
ignore_case: false
62-
encode_as_base64: true
63-
iterations: 5000
64-
id: ~
59+
Acme\DemoBundle\Entity\User3:
60+
id: my.encoder.id
6561
6662
providers: # Required
6763
# Examples:
68-
memory:
69-
name: memory
70-
users:
71-
foo:
72-
password: foo
73-
roles: ROLE_USER
74-
bar:
75-
password: bar
76-
roles: [ROLE_USER, ROLE_ADMIN]
77-
entity:
64+
my_in_memory_provider:
65+
memory:
66+
users:
67+
foo:
68+
password: foo
69+
roles: ROLE_USER
70+
bar:
71+
password: bar
72+
roles: [ROLE_USER, ROLE_ADMIN]
73+
74+
my_entity_provider:
7875
entity:
79-
class: SecurityBundle:User
80-
property: username
76+
class: SecurityBundle:User
77+
property: username
8178
8279
# Example custom provider
83-
some_custom_provider:
80+
my_some_custom_provider:
8481
id: ~
82+
83+
# Chain some providers
84+
my_chain_provider:
8585
chain:
86-
providers: []
86+
providers: [ my_in_memory_provider, my_entity_provider ]
8787
8888
firewalls: # Required
8989
# Examples:

0 commit comments

Comments
 (0)