ottlinger / hornherzogen

Project to manage Aikidō seminar registrations
GNU General Public License v3.0
0 stars 2 forks source link

Config: Print config while protecting sensitive data #24

Closed ottlinger closed 7 years ago

ottlinger commented 7 years ago

Do not use var_dump() but implement a toString() in ConfigurationWrapper that is launched in all other cases.

Do not output:

Shorten:

Implemented a generic function that allows to mask substrings of given values: \hornherzogen\ConfigurationWrapper::maskWithAsterisk static function maskWithAsterisk($input, $fromPosition = 0)