aboutsummaryrefslogtreecommitdiff
path: root/src/Dotenv.php
diff options
context:
space:
mode:
authorАлександр Кирюхин <alexander@kiryukhin.su>2018-01-19 19:03:26 +0300
committerАлександр Кирюхин <alexander@kiryukhin.su>2018-01-19 19:03:26 +0300
commit8ea647570b87adda400e5a3ce6c91f4b51327a0d (patch)
tree7c5d328b41e64c3e78ac89c9674747346233c87a /src/Dotenv.php
parent47c9d580c6e799e72b6a70b22dd5107790b1d3e9 (diff)
Remove KeyValue objectHEADmaster
Diffstat (limited to 'src/Dotenv.php')
-rw-r--r--src/Dotenv.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Dotenv.php b/src/Dotenv.php
index 3f6eb90..95dda02 100644
--- a/src/Dotenv.php
+++ b/src/Dotenv.php
@@ -15,7 +15,6 @@ use NeonXP\Dotenv\Loader\FileLoader;
use NeonXP\Dotenv\Loader\LoaderInterface;
use NeonXP\Dotenv\Parser\Parser;
use NeonXP\Dotenv\Parser\ParserInterface;
-use NeonXP\Dotenv\Types\KeyValue;
/**
* Class Dotenv
@@ -75,9 +74,9 @@ class Dotenv implements \ArrayAccess, \IteratorAggregate
$rawData = array_map([$this->parser, 'parseLine'], $lines);
$this->compiler->setRawCollection($rawData);
$this->loadedValues = array_reduce(
- array_map([$this->compiler, 'compileKeyValue'], $rawData),
- function (array $acc, KeyValue $current) {
- $acc[$current->getKey()] = $current->getValue();
+ array_map([$this->compiler, 'compile'], $rawData),
+ function (array $acc, $current) {
+ $acc[$current['key']] = $current['value'];
return $acc;
},
[]