Use $_ENV instead of getenv
This commit is contained in:
parent
8e93dd055e
commit
e5e9cd91b0
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user