mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
This replaces {data_dir}/settings throughout the code, so that
the configuration may be placed somewhere else in the directory
structure (e.g. in /etc).
14 lines
259 B
PHP
14 lines
259 B
PHP
<?php
|
|
|
|
require('Symfony/Component/Dotenv/autoload.php');
|
|
|
|
function loadDotEnv()
|
|
{
|
|
$dotenv = new \Symfony\Component\Dotenv\Dotenv();
|
|
$dotenv->load(CONST_ConfigDir.'/env.defaults');
|
|
|
|
if (file_exists('.env')) {
|
|
$dotenv->load('.env');
|
|
}
|
|
}
|