Commit c1899dd
Deprecate "mongo" handler type in favor of new "mongodb" syntax
Define a new "mongodb" handler type. It accepts an "id" reference like the old "mongo" type; however, "uri" instead of a single "host" and "port". The "uri" option is more flexible.
Additionally, the "username" and "password" options have been renamed and are no longer used to modify the connection string directly ("mongo" never applied URL encoding). Instead, the options are set in the URI options array, which does not require encoding. The "mongodb" never requires a password, as a username alone is valid for some auth mechanisms.
Lastly, a "monolog-bundle" app name is specified when the bundle constructs a MongoDB\Client instance for both "mongo" and "mongodb" handler syntax.
Apply MongoDBFormatter to each "mongodb" handler by default
Remove redundant Definition::setPublic() calls for inline services
Revise error messages for mongo and mongodb handler configs
Throw if mongodb/mongodb package is not available when configuring handlers
Add mongodb extension for CI testing
Skip tests if mongodb/mongodb is not installed
Add CI job for testing MongoDB handlers1 parent 4fb8f83 commit c1899ddCopy full SHA for c1899dd
File tree
Expand file treeCollapse file tree
9 files changed
+315
-4
lines changedOpen diff view settings
Filter options
- .github/workflows
- config/schema
- src/DependencyInjection
- tests/DependencyInjection
- Fixtures
- xml
- yml
Expand file treeCollapse file tree
9 files changed
+315
-4
lines changedOpen diff view settings
Collapse file
+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
| 17 | + |
17 | 18 | |
18 | 19 | |
19 | 20 | |
| ||
26 | 27 | |
27 | 28 | |
28 | 29 | |
| 30 | + |
| 31 | + |
29 | 32 | |
30 | 33 | |
31 | 34 | |
| ||
40 | 43 | |
41 | 44 | |
42 | 45 | |
| 46 | + |
43 | 47 | |
44 | 48 | |
45 | 49 | |
| ||
49 | 53 | |
50 | 54 | |
51 | 55 | |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
52 | 60 | |
53 | 61 | |
54 | 62 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
| 20 | + |
20 | 21 | |
21 | 22 | |
22 | 23 | |
|
Collapse file
config/schema/monolog-1.0.xsd
Copy file name to clipboardExpand all lines: config/schema/monolog-1.0.xsd+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
| 24 | + |
24 | 25 | |
25 | 26 | |
26 | 27 | |
| ||
163 | 164 | |
164 | 165 | |
165 | 166 | |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
166 | 176 | |
167 | 177 | |
168 | 178 | |
|
Collapse file
src/DependencyInjection/Configuration.php
Copy file name to clipboardExpand all lines: src/DependencyInjection/Configuration.php+50-2Lines changed: 50 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
90 | 90 | |
91 | 91 | |
92 | 92 | |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
93 | 104 | |
94 | 105 | |
95 | 106 | |
| ||
648 | 659 | |
649 | 660 | |
650 | 661 | |
| 662 | + |
651 | 663 | |
652 | 664 | |
653 | 665 | |
| ||
879 | 891 | |
880 | 892 | |
881 | 893 | |
882 | | - |
| 894 | + |
883 | 895 | |
884 | 896 | |
885 | 897 | |
| ||
891 | 903 | |
892 | 904 | |
893 | 905 | |
894 | | - |
| 906 | + |
| 907 | + |
| 908 | + |
| 909 | + |
| 910 | + |
| 911 | + |
| 912 | + |
| 913 | + |
| 914 | + |
| 915 | + |
| 916 | + |
| 917 | + |
| 918 | + |
| 919 | + |
| 920 | + |
| 921 | + |
| 922 | + |
| 923 | + |
| 924 | + |
| 925 | + |
| 926 | + |
| 927 | + |
| 928 | + |
| 929 | + |
| 930 | + |
| 931 | + |
| 932 | + |
| 933 | + |
| 934 | + |
| 935 | + |
| 936 | + |
| 937 | + |
| 938 | + |
| 939 | + |
| 940 | + |
| 941 | + |
| 942 | + |
895 | 943 | |
896 | 944 | |
897 | 945 | |
|
Collapse file
src/DependencyInjection/MonologExtension.php
Copy file name to clipboardExpand all lines: src/DependencyInjection/MonologExtension.php+46-2Lines changed: 46 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
265 | 265 | |
266 | 266 | |
267 | 267 | |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
268 | 274 | |
269 | 275 | |
270 | 276 | |
| ||
278 | 284 | |
279 | 285 | |
280 | 286 | |
| 287 | + |
281 | 288 | |
282 | | - |
283 | | - |
284 | 289 | |
285 | 290 | |
286 | 291 | |
| ||
292 | 297 | |
293 | 298 | |
294 | 299 | |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
295 | 338 | |
296 | 339 | |
297 | 340 | |
| ||
1021 | 1064 | |
1022 | 1065 | |
1023 | 1066 | |
| 1067 | + |
1024 | 1068 | |
1025 | 1069 | |
1026 | 1070 | |
|
Collapse file
tests/DependencyInjection/FixtureMonologExtensionTestCase.php
Copy file name to clipboardExpand all lines: tests/DependencyInjection/FixtureMonologExtensionTestCase.php+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
| 15 | + |
15 | 16 | |
16 | 17 | |
17 | 18 | |
| ||
332 | 333 | |
333 | 334 | |
334 | 335 | |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
| 351 | + |
| 352 | + |
335 | 353 | |
336 | 354 | |
337 | 355 | |
|
Collapse file
tests/DependencyInjection/Fixtures/xml/mongodb.xml
Copy file name to clipboard+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
Collapse file
tests/DependencyInjection/Fixtures/yml/mongodb.yml
Copy file name to clipboard+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
0 commit comments