Skip to content

Conversation

@MightyCreak
Copy link
Owner

This PR uses a better design pattern for loading config files.

Instead of declaring a $CONFIG variable in the config/config.default.php (and config/config.php), the script simply returns an array, and doesn't declare any variable.

So instead of just including the config file using @include, and then looking into the $CONFIG variable, the script directly assigned the result of the included file in a variable (using $var = require($file_path)).

It's apparently a better practice for loading config files.

@MightyCreak MightyCreak merged commit 4de0502 into main Nov 18, 2025
1 check passed
@MightyCreak MightyCreak deleted the refactor/config-file branch November 18, 2025 19:54
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.

2 participants