add fix for env loader

This commit is contained in:
Simon Vieille 2019-06-26 09:43:57 +02:00
parent e1cb5a212d
commit fbd807e5bd
Signed by: deblan
GPG Key ID: 03383D15A1D31745
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ use Pecee\SimpleRouter\SimpleRouter;
require __DIR__.'/../vendor/autoload.php';
$dotenv = Dotenv\Dotenv::create(__DIR__.'/../');
$dotenv = Dotenv\Dotenv::create(dirname(__FILE__).'/../');
$dotenv->load();
function isValidUrl( ? string $url, ? string $hostname) : bool