-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Make db_driver parameter optional with "no_driver" default value #2708
base: master
Are you sure you want to change the base?
Conversation
5053653
to
163262e
Compare
This doesn't feel right. Why no setting a default driver in the recipe? |
@XWB it is because using default value |
Then we should move the package from |
I was not sure, this could be done =( |
I'm starting to feel a recipe for this bundle is not possible at all. |
It would be possible with this PR and after fixing bug about |
@XWB the main goal of this PR is to make possible clean installation of this bundle via Flex. To achive that, FOSUserBundle should not require any additional services, not configured with installed bundles from composer.json Right now all supported db_drivers (orm, mongodb and couchdb) require some other services, that are not installed by default. All, except one: |
I am a newbie to FOSUserBundle, so I am the kind of person who would be the most impacted or puzzled by this configuration/requirement issue. What I have really appreciated so far is the feedback I got at runtime about Symfony configuration issues when I ran my apps in dev mode. It was easy to understand and to fix. I got enough guidance to solve my issue as a dev. What I appreciated less is that solving dependencies from "old" to Flex was tricky. I really love this idea of recipes. |
@XWB Can you explain why this PR feels to you like a hack? For the mailer also exists a "noop" service: FOSUserBundle/Resources/config/mailer.xml Line 45 in cb27a67
|
@XWB just FYI. We implemented a similar feature for And now, after executing
So, after executing I just wanted to say, i still believe that FOSUserBundle potentially can have a recipe for Flex too =) |
Is that possible to add a script to demand which package he wants to install ? |
@tattali Flex will never be interactive, see symfony/flex#344. So, there won't be any "on demand" =( |
@XWB Can you please respond to #2708 (comment)? |
In fact this is possible to inform users after recipe install by adding a We can tell them in that file the change they need to do to finish FOSUser installation |
@tattali Yes, but without the change from this PR, the recipe can not be published because symfony flex tests will not pass. |
Yes of course but maybe @XWB and @stof wasn't know. This PR has been opened 8 months ago. So a solution should be find. If the changes of this PR are merged. The instructions about the dependencies installation can be put in the If not we should think about changing the documentation to balance the absence of recipe... |
@covex-nn what is the status of this feature ? |
What about using prepend extension. Just check if DoctrineBundle is installed and set de config according. |
@covex-nn hi, symfony flex + FOSUserBundle still not working. Have you any news? |
FOSUserBundle does not require
doctrine/doctrine-bundle
and never will, i guess. So, it is not possible to create Flex recipe for this bundle without changes.My proposal is to make
db_driver
parameter optional, with new default value "no_driver" to get all errors in runtime, not on configuration stage.With this PR,
fos_user.user_manager.default
andfos_user.group_manager.default
services will throw\RuntimeException
on every implemented method.