Fixed
Details
Priority
MinorAssignee
AlexAlexReporter
AlexAlexDeveloper
Erik S.Erik S.Reviewer
AlexAlexChange Log Group
AddedChange Log Message
Added "kSystemConfig" class for accessing "/system/config.php" file.Patch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
Commit Revision
15,962External issue ID
1402External issue URL
Story Points
2Fix versions
Affects versions
Details
Details
Priority
Assignee
Alex
AlexReporter
Alex
AlexDeveloper
Erik S.
Erik S.Reviewer
Alex
AlexChange Log Group
Added
Change Log Message
Added "kSystemConfig" class for accessing "/system/config.php" file.
Patch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
Commit Revision
15,962
External issue ID
1402
External issue URL
Story Points
2
Fix versions
Affects versions
Created September 16, 2012 at 6:03 PM
Updated December 29, 2024 at 8:58 PM
Resolved September 3, 2013 at 3:14 PM
File /system/config.php is created during In-Portal installation and contains all core settings that are needed to be able to run In-Portal.
For example it contains database connection information. Then once connected to database In-Portal can get other settings from there.
This file very powerful, however code that uses it is scattered across the system. For example there is:
kUtil::parseVars method, that returns contents of that file as array (used each time)
some pieces of code in /core/kernel/startup.php file, that ensures default values for some settings, that might be missing (used each time)
some pieces of code in /core/install.php file, that ensures default values for some other settings, that might be missing (used during install)
I'm proposing to create kSystemConfig class, that can be accessed from everywhere (due his static nature) and will ensure that all settings have their default values and can be accessed properly.