-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Remove profiler storages #15944
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
Remove profiler storages #15944
Changes from 1 commit
14bde56
8bc599c
5739807
55a5fcf
19cf251
89eef1e
f37d191
70aa3da
b8a8a7c
94f5e98
994ab2c
acb416d
213d5a8
4242bfa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -268,16 +268,19 @@ private function addProfilerSection(ArrayNodeDefinition $rootNode) | |
->ifTrue(function ($v) { return 'file:' !== substr($v['dsn'], 0, 5); }) | ||
->then(function ($v) { | ||
@trigger_error('The profiler.dsn configuration key must start with "file:" because all the storages except the filesystem are deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED); | ||
|
||
return $v; | ||
}) | ||
->ifTrue(function ($v) { return array_key_exists('username', $v); }) | ||
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. you cannot call |
||
->then(function ($v) { | ||
@trigger_error('The profiler.username configuration key is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED); | ||
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. given that you need to trigger it all the time when |
||
|
||
return $v; | ||
}) | ||
->ifTrue(function ($v) { return array_key_exists('password', $v); }) | ||
->then(function ($v) { | ||
@trigger_error('The profiler.password configuration key is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED); | ||
|
||
return $v; | ||
}) | ||
->end() | ||
|
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.
you need to check whether the
dsn
key exists before accessing it, as you run it on unvalidated configuration.The alternative is to put this trigger on the
dsn
node itself rather than on theprofiler
node, as it deals with a single value anyway