Task: #53687 Support instance-specific cfg write targets and add coverage #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "53687/task-support-instance-specific-cfg-write-target"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
cfg behavior (functional summary)
cfg separates two concepts:
•
--pkgPath(-p): where extension/package default files are read from (<prefix>.default.conf.php).•
--appPath(-a): where local/override configuration is written (config/...).So
-pdoes not define the write target; it defines the defaults source.public/extensions/myCEESV/config/myCEESV.default.conf.php/config/myCEESV.conf.php(if -a is not provided, cwd is used)./config/owner_xyz/myCEESV.conf.php--siteor--directory-nameaccepts both owner_xyz and config/owner_xyz (both normalize to the same target)public/extensions/myCEESV/config/myCEESV.default.conf.phppublic/extensions/myCEESV/config/myCEESV.conf.phpTechnical note
A bug was fixed in Settings::load() so cfg no longer fails when the extension default config does not define mode; it now applies an automatic fallback and does not require -m.
Please test cfg with instance-specific targets:
From an instance root (
cd <path2instance>), run:Expected:
config/owner_xyz/myCEESV.conf.php(directory created if missing)config/myCEESV.conf.phpis untouched when--directory-name/--siteis used.bakwhen overwriting existing instance config--directory-name/--site, behavior stays unchanged (writes to local config)e2cc59fe91toadf5a98768Closing this pull request because it was created with the wrong Git user/author metadata. I opened a replacement PR from a new branch with the correct author information.
Check the PR link below instead of this current one
New PR: #4
Pull request closed