aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorАлександр Кирюхин <alexander@kiryukhin.su>2018-01-19 10:27:54 +0300
committerАлександр Кирюхин <alexander@kiryukhin.su>2018-01-19 10:27:54 +0300
commit47c9d580c6e799e72b6a70b22dd5107790b1d3e9 (patch)
tree030cd22c91dcc12fc6dd567d5cc8edd0dcec7818
parentdf783762443a20bca919a8c323199a8df4da7d62 (diff)
Fix compiler
-rw-r--r--src/Dotenv.php4
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;