Improve configuration loading/handling #251
Labels
enhancement
New feature or request
nice to have
This is a "nice to have" feature - not a critical requirement
The current
Config
implementation is difficult to consume; pretty much everything ismixed
, since even theCoerceType
is not carried through in any way static analysers can understand.This has led to contributors implementing various wrappers, especially for more complex types, such as
\Scoutapm\Config\Helper\RequireValidFilteredParameters
,\Scoutapm\Config\IgnoredEndpoints
, as well as a LOT of downstream type checks.Investigate an overhaul which would allow us to keep the same configuration sources we support, but the API for fetching the config values internally would be improved and type-safe.
The text was updated successfully, but these errors were encountered: