Configuration classes #69
Labels
No labels
admin tools
api
bug
documentation
duplicate
enhancement
feature
help wanted
in progress
internals
invalid
packaging
question
testing
trivial
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: MensBeam/Arsse#69
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
We should be looking for configuration in several locations, and assign a class (in a dictionary sense) depending on which we find:
$_SERVER['ARSSE_CONFIG']
(or possibly a registry key, on Windows) or command line option (custom)config.php
indirname($_SERVER['PHP_SELF'])
(local)/etc/arsse/config.php
or on Windows%programdata%\MensBeam\arsse\config.php
(global)The class would affect some configuration defaults, such as the location of the SQLite database (
/var/lib/arsse/arsse.db
for global), logging settings, and perhaps other things.Eventually this may perhaps be extended to accommodate user-global configurations.