Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Read the documentation: https://symfony.com/doc/master/bundles/FOSUserBundle/index.html
fos_user:
# db_driver: orm # other valid values are 'mongodb' and 'couchdb'
firewall_name: main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead, it's better IMO to directly uncomment db_driver, firewall_name and user_class in the recipe as they are all mandatory anyway in the bundle.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, you're right. I changed the config in e129d94

# user_class: AppBundle\Entity\User
# from_email:
# address: "%env(MAILER_USER)%"
# sender_name: "%env(MAILER_USER)%"
11 changes: 11 additions & 0 deletions friendsofsymfony/user-bundle/2.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bundles": {
"FOS\\RestBundle\\FOSUserBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"MAILER_USER": ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think MAILER_USER is inconsistent with possible configuration value. I think MAILER_SENDER would probably be more appropriate. A "user" option is more to configure the mailer with a user.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

}
}