-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Deprecate mixing the url
option with host
, dbname
and a few others
#1335
Conversation
url
one
6b0f16f
to
0f76019
Compare
You mean #1331, not #1334, right? @stof I'm not quite sure what you meant with #1331 (comment), is that still a problem in this PR? I like this PR though, IMO it's ok to finish it. |
0f76019
to
378bd32
Compare
I extracted the part about |
@ostrolucky this PR does not deprecate options like However, we should be careful when writing the upgrade guide (asking people to dynamically create a URL in the config file from separate username, host, password and db name is quite fragile, as it would probably miss the need for URL escaping, which will only trigger a bug after some time when rotating the password to one using special URL chars for instance) |
Just a reminder that after #1331 has been merged, we expect this to be finished next. |
url
oneurl
option with host
, dbname
and a few others
378bd32
to
b12edfe
Compare
I went with a more conservative approach that should provide the same benefit: what is now deprecated is mixing the |
Yep that's good compromise I think |
b12edfe
to
f751629
Compare
return $values; | ||
} | ||
|
||
$urlConflictingOptions = ['host' => true, 'port' => true, 'user' => true, 'password' => true, 'path' => true, 'dbname' => true, 'unix_socket' => true, 'memory' => true]; |
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 driver is missing, isn't it?
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.
driver
is in another branch of the config tree.
I don't think that's an issue.
thx @nicolas-grekas |
As proposed in #1331
For discussion. (I'll take care of tests once the discussion has settled.)