Commit 35a1ab4
feat: Add Global Context feature (#9970)
* Added Context class
* Added some convenient methods
* Enhance logger to properly include global context
* Add unit tests for Context class functionality
* Added tests for global context logging behaviour
* cs-fix
* Add docs
* add context() helper function
* cs-fix and fixing static analysis problems
* Some doc fixing
* Fix rst errors.
* Apply suggested changes
* Set $logGlobalContext to false by default
* Add docs for helper method
* cs-fix
* Fix the doc issue
* Applying code suggestions
Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
Co-authored-by: michalsn <michal@sniatala.pl>
* changed type from mixed|null to mixed
* Added __serialize and __unserialize methods.
* Returning $default if $key is not present. And only calling ArrayHelper if needed.
* Remove contructor
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
---------
Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
Co-authored-by: michalsn <michal@sniatala.pl>1 parent f048e06 commit 35a1ab4
File tree
35 files changed
+1902
-0
lines changed- app/Config
- system
- Config
- Context
- Log
- tests/system
- Context
- Log
- user_guide_src/source
- changelogs
- general
- context
35 files changed
+1902
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
54 | 70 | | |
55 | 71 | | |
56 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
215 | 227 | | |
216 | 228 | | |
217 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
868 | 869 | | |
869 | 870 | | |
870 | 871 | | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
871 | 884 | | |
0 commit comments