Skip to content

feature: implement isProduction #237

Merged
g105b merged 2 commits intomasterfrom
229-is-production
Mar 16, 2026
Merged

feature: implement isProduction #237
g105b merged 2 commits intomasterfrom
229-is-production

Conversation

@g105b
Copy link
Member

@g105b g105b commented Mar 15, 2026

closes #229

This PR introduces a new boolean function on the Config class: isProduction.

To decide whether or not the app is in production mode, it first checks to see if there is a literal app.production variable in any config file. If there is no such variable, it uses the presence of the config.production.ini file to decide it is production.

@g105b g105b merged commit 21fa25f into master Mar 16, 2026
40 checks passed
@g105b g105b deleted the 229-is-production branch March 16, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check $config->isProduction()

1 participant