Configuration classes #69

Open
opened 2017-08-30 13:10:41 -04:00 by jking · 0 comments
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 2017-08-30 13:10:41 -04:00
jking added the
admin tools
packaging
labels 2017-08-30 13:10:41 -04:00
jking modified the milestone from 0.2.0 to Future 2017-09-11 15:28:34 -04:00
jking removed the due date 0000-12-31 2018-08-15 09:48:54 -04:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: MensBeam/Arsse#69
No description provided.