CodeIgniter Forums
Best place for config files from vendor packages - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: Best place for config files from vendor packages (/showthread.php?tid=76425)



Best place for config files from vendor packages - futureisnow - 05-11-2020

Hi,
when installing (with composer) a package, it can happen config files are provided withing the package. I can see 2 main approaches: 
1. Leaving and set the configs in their original packages
2. Moving them into main app/config directory

What ist better solution in your opinion? Especially in terms of upgrading the packages. 
I don't like changing the code in vendor packages. It is also annoying to check and migrate configs again after an upgrade of the package.
Thanks in advance for your opinion.


RE: Best place for config files from vendor packages - jreklund - 05-11-2020

Option 2 all days in the week. Or your configuration would be overwritten when updating.


RE: Best place for config files from vendor packages - futureisnow - 05-11-2020

(05-11-2020, 10:43 PM)jreklund Wrote: Option 2 all days in the week. Or your configuration would be overwritten when updating.
Thank you for your answer! It makes sense.