File tree Expand file tree Collapse file tree 3 files changed +18
-10
lines changed
friendsofsymfony/user-bundle/2.1 Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 11fos_user :
2- db_driver : orm
2+ db_driver : no_driver # valid values are 'orm', 'mongodb' and 'couchdb'
3+ user_class : App\Entity\User
4+ firewall_name : main
35 service :
46 mailer : fos_user.mailer.noop
5- firewall_name : main
6- user_class : App\Entity\User
77 from_email :
8- address : " address"
9- sender_name : " name"
8+ address : " %env(MAILER_SENDER_ADDRESS)%"
9+ sender_name : " %env(MAILER_SENDER_NAME)%"
10+
Original file line number Diff line number Diff line change 55 "copy-from-recipe" : {
66 "config/" : " %CONFIG_DIR%/" ,
77 "src/" : " %SRC_DIR%/"
8+ },
9+ "env" : {
10+ "MAILER_SENDER_ADDRESS" : " joh.doe@example.com" ,
11+ "MAILER_SENDER_NAME" : " John Doe"
812 }
913}
Original file line number Diff line number Diff line change 22<bg=blue;fg=white> What's next? </>
33<bg=blue;fg=white> </>
44
5- Warning: make sure the twig engine is turned on in framework .yaml
5+ - If not, install a driver storage and change it in <fg=green>config/packages/fos_user .yaml</>
66
7- - Modify your email address config in <fg=green>config/packages/fos_user.yaml </>
7+ - Modify your email address config in <fg=green>.env </>
88
9- - If not, add the following to <fg=green>config/packages/framework.yaml</>:
9+ - Uncomment <fg=green>csrf_protection</> and make sure <fg=green>twig engine</> is turned on by adding in <fg=green>config/packages/framework.yaml</>:
1010
1111framework:
1212 # ...
13- csrf_protection: { enabled: true }
13+ csrf_protection: true
1414 templating:
1515 engines: ['twig']
1616
17+ - Create your User class
18+ https://symfony.com/doc/master/bundles/FOSUserBundle/index.html#step-3-create-your-user-class
19+
1720 - Modify your security configuration in <fg=green>config/packages/security.yaml</>
18- https://symfony.com/doc/2.0 /bundles/FOSUserBundle/index.html#step-4-configure-your-application-s-security-yml
21+ https://symfony.com/doc/master /bundles/FOSUserBundle/index.html#step-4-configure-your-application-s-security-yml
You can’t perform that action at this time.
0 commit comments