mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-28 14:22:19 +03:00
9348fc5e15
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.
14 lines
266 B
PHP
14 lines
266 B
PHP
<?php
|
|
|
|
require('Symfony/Component/Dotenv/autoload.php');
|
|
|
|
function loadDotEnv()
|
|
{
|
|
$dotenv = new \Symfony\Component\Dotenv\Dotenv();
|
|
$dotenv->load(CONST_DataDir.'/settings/env.defaults');
|
|
|
|
if (file_exists('.env')) {
|
|
$dotenv->load('.env');
|
|
}
|
|
}
|