php-profiler icon indicating copy to clipboard operation
php-profiler copied to clipboard

Exclude all ENV

Open koekaverna opened this issue 2 years ago • 1 comments

Hi, @glensc , first of all thank you for supporting this package <3

In my project i need to exclude all $_ENV, there is few thousands of secrets. Actualy this meta.env not used in xhgui UI.

Can we add some flag to not export this envs in ProfilingData::getProfilingData ? Like profiler.exclude-all-env: bool ? Or maybe check profiler.exclude-env is true - exclude all instead of list?

I can make PR.

koekaverna avatar Nov 16 '23 16:11 koekaverna

So make it then. No need to ask permission!

glensc avatar Jan 24 '24 00:01 glensc