Configuration classes #69

Open
opened 5 years ago by jking · 0 comments
jking commented 5 years ago
Owner

We should be looking for configuration in several locations, and assign a class (in a dictionary sense) depending on which we find:

  1. The value of $_SERVER['ARSSE_CONFIG'] (or possibly a registry key, on Windows) or command line option (custom)
  2. A file named config.php in dirname($_SERVER['PHP_SELF']) (local)
  3. /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.

We should be looking for configuration in several locations, and assign a class (in a dictionary sense) depending on which we find: 1. The value of `$_SERVER['ARSSE_CONFIG']` (or possibly a registry key, on Windows) or command line option (custom) 2. A file named `config.php` in `dirname($_SERVER['PHP_SELF'])` (local) 3. `/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.
jking added this to the 0.2.0 milestone 5 years ago
jking added the
admin tools
packaging
labels 5 years ago
jking modified the milestone from 0.2.0 to Future 5 years ago
jking removed the due date 0000-12-31 4 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.