security updatesn, phpdotenv update, profile update

This commit is contained in:
2022-10-31 14:45:34 +01:00
parent 7ce2e5fb39
commit afb9d13ed8
4 changed files with 230 additions and 147 deletions

View File

@@ -1,20 +1,20 @@
<?php
/**
* This file is included very early. See autoload.files in composer.json and
* https://getcomposer.org/doc/04-schema.md#files
*/
use Dotenv\Dotenv;
use Dotenv\Exception\InvalidPathException;
/**
* Load any .env file. See /.env.example.
*/
$dotenv = new Dotenv(__DIR__);
$dotenv = Dotenv::createImmutable(__DIR__);
try {
$dotenv->load();
}
catch (InvalidPathException $e) {
// Do nothing. Production environments rarely use .env files.
}
}