|
3
|
1 |
FOSUserBundle Configuration Reference |
|
|
2 |
===================================== |
|
|
3 |
|
|
|
4 |
All available configuration options are listed below with their default values. |
|
|
5 |
|
|
|
6 |
``` yaml |
|
|
7 |
# app/config/config.yml |
|
|
8 |
fos_user: |
|
|
9 |
db_driver: ~ # Required |
|
|
10 |
firewall_name: ~ # Required |
|
|
11 |
user_class: ~ # Required |
|
|
12 |
use_listener: true |
|
|
13 |
use_username_form_type: true |
|
|
14 |
model_manager_name: null # change it to the name of your entity/document manager if you don't want to use the default one. |
|
|
15 |
from_email: |
|
|
16 |
address: webmaster@example.com |
|
|
17 |
sender_name: Admin |
|
|
18 |
profile: |
|
|
19 |
form: |
|
|
20 |
type: fos_user_profile |
|
|
21 |
handler: fos_user.profile.form.handler.default |
|
|
22 |
name: fos_user_profile_form |
|
|
23 |
validation_groups: [Profile] |
|
|
24 |
change_password: |
|
|
25 |
form: |
|
|
26 |
type: fos_user_change_password |
|
|
27 |
handler: fos_user.change_password.form.handler.default |
|
|
28 |
name: fos_user_change_password_form |
|
|
29 |
validation_groups: [ChangePassword] |
|
|
30 |
registration: |
|
|
31 |
confirmation: |
|
|
32 |
from_email: # Use this node only if you don't want the global email address for the confirmation email |
|
|
33 |
address: ... |
|
|
34 |
sender_name: ... |
|
|
35 |
enabled: false # change to true for required email confirmation |
|
|
36 |
template: FOSUserBundle:Registration:email.txt.twig |
|
|
37 |
form: |
|
|
38 |
type: fos_user_registration |
|
|
39 |
handler: fos_user.registration.form.handler.default |
|
|
40 |
name: fos_user_registration_form |
|
|
41 |
validation_groups: [Registration] |
|
|
42 |
resetting: |
|
|
43 |
token_ttl: 86400 |
|
|
44 |
email: |
|
|
45 |
from_email: # Use this node only if you don't want the global email address for the resetting email |
|
|
46 |
address: ... |
|
|
47 |
sender_name: ... |
|
|
48 |
template: FOSUserBundle:Resetting:email.txt.twig |
|
|
49 |
form: |
|
|
50 |
type: fos_user_resetting |
|
|
51 |
handler: fos_user.resetting.form.handler.default |
|
|
52 |
name: fos_user_resetting_form |
|
|
53 |
validation_groups: [ResetPassword] |
|
|
54 |
service: |
|
|
55 |
mailer: fos_user.mailer.default |
|
|
56 |
email_canonicalizer: fos_user.util.email_canonicalizer.default |
|
|
57 |
username_canonicalizer: fos_user.util.username_canonicalizer.default |
|
|
58 |
user_manager: fos_user.user_manager.default |
|
|
59 |
encoder: |
|
|
60 |
algorithm: sha512 |
|
|
61 |
encode_as_base64: false |
|
|
62 |
iterations: 1 |
|
|
63 |
template: |
|
|
64 |
engine: twig |
|
|
65 |
theme: FOSUserBundle::form.html.twig |
|
|
66 |
group: |
|
|
67 |
group_class: ~ # Required when using groups |
|
|
68 |
group_manager: fos_user.group_manager.default |
|
|
69 |
form: |
|
|
70 |
type: fos_user_group |
|
|
71 |
handler: fos_user.group.form.handler.default |
|
|
72 |
name: fos_user_group_form |
|
|
73 |
validation_groups: [Registration] |
|
|
74 |
``` |