From 47c9d580c6e799e72b6a70b22dd5107790b1d3e9 Mon Sep 17 00:00:00 2001 From: Александр Кирюхин Date: Fri, 19 Jan 2018 10:27:54 +0300 Subject: Fix compiler --- src/Dotenv.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Dotenv.php') 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; -- cgit v1.2.3