-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Environment detection logic is duplicated in both HandlerConfig and SecurityConfig. Should be extracted to a shared utility.
Implementation Details
- Create
EnvironmentDetectorclass inWebFiori\Error\Config - Move detection logic (checking APP_ENV, display_errors, PRODUCTION constant) to this class
- Update
HandlerConfigandSecurityConfigto useEnvironmentDetector - Consider caching the detected environment
Acceptance Criteria
- Single source of truth for environment detection
- No duplicated detection logic
- Both config classes use shared detector
- Existing tests still pass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request