-
-
Notifications
You must be signed in to change notification settings - Fork 664
[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
Conversation
devtronic
commented
Dec 17, 2017
Q | A |
---|---|
License | MIT |
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.
Pull request does not pass validation.
@@ -0,0 +1,8 @@ | |||
# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html | |||
fos_user: ~ |
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.
"fos_user" should be removed as it is empty
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.
Pull request passes validation.
# 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 |
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.
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.
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.
Thanks, you're right. I changed the config in e129d94
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.
Pull request passes validation.
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.
Pull request passes validation.
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.
Pull request passes validation.
"config/": "%CONFIG_DIR%/" | ||
}, | ||
"env": { | ||
"MAILER_USER": "" |
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.
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.
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.
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.
Pull request does not pass validation.
|
||
services: | ||
validator.builder: | ||
class: Symfony\Component\Config\Definition\Builder\ValidationBuilder |
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.
Should end with a newline
sender_name: "%env(MAILER_USER)%" | ||
|
||
services: | ||
validator.builder: |
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.
FYI. This is a duplicate of #270. |