Files
Yassine Guedidi a47241fb14 Warn when parameters.yml is used instead of DATABASE_URL
Configuring wallabag via app/config/parameters.yml for the database (and other settings) is deprecated. In wallabag 3.0, parameters.yml support will be removed entirely and DATABASE_URL must be provided as a real environment variable.

The check fires at container-compilation time whenever DATABASE_URL is absent from the process environment, which is the reliable signal that the fallback env(DATABASE_URL) constructed from parameters.yml values is being used.

The test environment is excluded because Dotenv::bootEnv() populates $_ENV and $_SERVER but not the process environment (it defaults to usePutenv=false). As a result, getenv('DATABASE_URL') returns false in test runs even when .env.test is loaded correctly, making the heuristic a false positive for every developer running the test suite.
2026-03-19 10:31:45 +01:00
..
2015-01-22 08:30:07 +01:00
2016-01-15 09:35:38 +01:00