Use $_ENV instead of getenv

This commit is contained in:
Lewis Dale committed 2024-09-25 13:39:40 +01:00
1 parent 8e93dd055e
commit e5e9cd91b0
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ $container->set(EntityManager::class, static function() {
$connection = DriverManager::getConnection([
'driver' => 'pdo_sqlite',
'path' => __DIR__ . '/../' . getenv("SQLITE_DB_NAME"),
'path' => __DIR__ . '/../' . $_ENV["SQLITE_DB_NAME"],
], $config);
$connection->executeQuery("PRAGMA foreign_keys = ON");