-
-
Notifications
You must be signed in to change notification settings - Fork 665
[WIP] Add recipe for friendsofsymfony/user-bundle #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4f0c008
850d71b
c6972c6
e129d94
ea9f9d1
18c2122
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 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 | ||
user_class: AppBundle\Entity\User | ||
from_email: | ||
address: "%env(MAILER_USER)%" | ||
sender_name: "%env(MAILER_USER)%" | ||
|
||
services: | ||
validator.builder: | ||
class: Symfony\Component\Config\Definition\Builder\ValidationBuilder | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should end with a newline |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"bundles": { | ||
"FOS\\UserBundle\\FOSUserBundle": ["all"] | ||
}, | ||
"copy-from-recipe": { | ||
"config/": "%CONFIG_DIR%/" | ||
}, | ||
"env": { | ||
"MAILER_USER": "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree |
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's absolutely not how the recipe should work. Instead, the package itself should require the Symfony package that installs this service, which is
symfony/validator
in this case.This is a problem from the FOSUserBundle side that should be fixed before a recipe can be created.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uh... I understand, sorry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This service should be removed. You use add
symfony/validator
to the dependencies section in your composer.json.