Use $_ENV instead of getenv

This commit is contained in:
Lewis Dale 2024-09-25 13:39:40 +01:00
parent 8e93dd055e
commit e5e9cd91b0

View File

@ -50,7 +50,7 @@ $container->set(EntityManager::class, static function() {
$connection = DriverManager::getConnection([ $connection = DriverManager::getConnection([
'driver' => 'pdo_sqlite', 'driver' => 'pdo_sqlite',
'path' => __DIR__ . '/../' . getenv("SQLITE_DB_NAME"), 'path' => __DIR__ . '/../' . $_ENV["SQLITE_DB_NAME"],
], $config); ], $config);
$connection->executeQuery("PRAGMA foreign_keys = ON"); $connection->executeQuery("PRAGMA foreign_keys = ON");