Skip to content
Corex

DotenvSource

Corex\Support\Config\Sources\DotenvSource · class · Core layer

The highest-precedence layer: an optional .env file at the project root, read with vlucas/phpdotenv (array-backed, so it never mutates the global environment). A dot key maps to an uppercased env name (app.name → APP_NAME). An absent file is empty (FR-013); a malformed file is logged and treated as empty rather than crashing boot (FR-014).

__construct(string $directory, BootLogger $logger)

Section titled “__construct(string $directory, BootLogger $logger)”