Skip to content

Commit dda339c

Browse files
committed
config_mutator.php
1 parent cb55e21 commit dda339c

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
# Manager
4747
/manager/includes/config.inc.php
48+
/manager/includes/config_mutator.php
4849

4950
# Composer
5051
/composer.phar

install/config.inc.tpl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ $coreClass = '\DocumentParser';
1818
$session_cookie_path = '';
1919
$session_cookie_domain = '';
2020

21+
/**
22+
* Preventing the overwrite of the config when updating
23+
* Here you can
24+
* - define manual constants, dedicated specifically for you project
25+
* - inject composer
26+
* - change predefined variables by the environment variables
27+
* - ...
28+
* - etc.
29+
* - PROFIT!
30+
*/
31+
if (file_exists(__DIR__ . '/config_mutator.php')) {
32+
require_once __DIR__ . '/config_mutator.php';
33+
}
34+
2135
if (!defined('MGR_DIR')) {
2236
define('MGR_DIR', 'manager');
2337
}

0 commit comments

Comments
 (0)