move dotenv parsing to installed PHP scripts

This means that the php-symfony-dotenv library is now only needed
when using the legacy scripts. This includes the BDD tests which
currently still rely on the PHP utils.
This commit is contained in:
Sarah Hoffmann
2021-01-14 17:09:22 +01:00
parent 97710ee9d1
commit 9348fc5e15
5 changed files with 20 additions and 12 deletions

View File

@@ -1,8 +1,12 @@
#!@PHP_BIN@ -Cq
<?php
require('@CMAKE_SOURCE_DIR@/lib/dotenv_loader.php');
@define('CONST_Default_ModulePath', '@CMAKE_BINARY_DIR@/module');
@define('CONST_Default_Osm2pgsql', '@CMAKE_BINARY_DIR@/osm2pgsql/osm2pgsql');
@define('CONST_BinDir', '@CMAKE_SOURCE_DIR@/utils');
@define('CONST_DataDir', '@CMAKE_SOURCE_DIR@');
loadDotEnv();
require_once('@CMAKE_SOURCE_DIR@/lib/admin/@script_source@');