diff options
-rw-r--r-- | src/Dotenv.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Dotenv.php b/src/Dotenv.php index 995efff..3f6eb90 100644 --- a/src/Dotenv.php +++ b/src/Dotenv.php @@ -8,6 +8,7 @@ declare(strict_types=1); namespace NeonXP\Dotenv; +use NeonXP\Dotenv\Compiler\Compiler; use NeonXP\Dotenv\Compiler\CompilerInterface; use NeonXP\Dotenv\Exception\RuntimeException; use NeonXP\Dotenv\Loader\FileLoader; @@ -54,6 +55,9 @@ class Dotenv implements \ArrayAccess, \IteratorAggregate if (!$parser) { $parser = new Parser(); // Default parser } + if (!$compiler) { + $compiler = new Compiler(); // Default compiler + } $this->loader = $loader; $this->parser = $parser; |