1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Load .env file

This commit is contained in:
Yassine Guedidi 2025-02-17 00:16:18 +01:00
parent 2db9ee2ba7
commit ad84d2b13b
6 changed files with 80 additions and 15 deletions

View file

@ -1,10 +1,13 @@
<?php
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Process\Process;
require __DIR__ . '/../vendor/autoload.php';
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
(new Filesystem())->remove(__DIR__ . '/../var/cache/test');
if (!isPartialRun()) {