-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C2] Remove config/configuration.php #5702
Comments
christianbeeznest
added a commit
to christianbeeznest/chamilo-lms
that referenced
this issue
Aug 7, 2024
It is implemented in this PR #5711 |
christianbeeznest
added a commit
to christianbeeznest/chamilo-lms
that referenced
this issue
Aug 8, 2024
christianbeeznest
added a commit
to christianbeeznest/chamilo-lms
that referenced
this issue
Aug 8, 2024
christianbeeznest
added a commit
to christianbeeznest/chamilo-lms
that referenced
this issue
Aug 9, 2024
Hi @ywarnier , Refactored installation logic to remove dependency on configuration.php and updated isUpdateAvailable to use APP_INSTALLED env variable. Please test fresh installs. Let me know if you find something to fix, please. I have tested locally and seems ok for me. Thanks for confirmation. |
christianbeeznest
added a commit
to christianbeeznest/chamilo-lms
that referenced
this issue
Aug 12, 2024
christianbeeznest
added a commit
to christianbeeznest/chamilo-lms
that referenced
this issue
Aug 28, 2024
… and hosting_limits.yml - refs chamilo#5702
christianbeeznest
added a commit
to christianbeeznest/chamilo-lms
that referenced
this issue
Aug 28, 2024
christianbeeznest
added a commit
that referenced
this issue
Aug 28, 2024
Internal: Migrate and improve settings from configuration.php to .env and hosting_limits.yml - refs #5702
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
config/configuration.php is a remnant of Chamilo 1.11 and only contains a few settings that are not yet supported with the new C2 (but that should be reintegrated in the future, so we don't want to loose them).
This is what configuration.php currently looks like on a newly-installed Chamilo 2.0 setup (I'm removing documentation for the purpose of synthesis in the code below):
The settings without a URL prefix (
[1]
in this example) can safely be moved to .env. Just change them to uppercase:(make sure these are converted correctly from any place in the code).
The settings related to hosting limits can be stored in a new file called config/hosting_limits.yml.dist, which will be copied to config/hosting_limits.yml manually if anyone needs to define values there:
This requires a migration (to move the remaining settings from configuration.php to the .env and .yml files, and a review of the code in search for the use of those settings, to replace them.
The text was updated successfully, but these errors were encountered: