Skip to content

Commit

Permalink
update phpdotenv (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviakim321 authored Sep 23, 2021
1 parent 5876763 commit b6e06ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"require": {
"aws/aws-sdk-php": "^3.171",
"vlucas/phpdotenv": "^4.0",
"vlucas/phpdotenv": "^5.2",
"php": "^8.0",
"symfony/console": "^5.2"
},
Expand Down
8 changes: 4 additions & 4 deletions src/Repository/DotenvRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public function __construct(string $workingDir, string $envFile)

public function load(): array
{
$adapter = new ArrayAdapter();
$adapter = ArrayAdapter::create()->get();

$repo = RepositoryBuilder::create()
->withReaders([$adapter])
->withWriters([$adapter])
$repo = RepositoryBuilder::createWithNoAdapters()
->addWriter($adapter)
->addReader($adapter)
->immutable()
->make()
;
Expand Down

0 comments on commit b6e06ab

Please sign in to comment.