Skip to content

Commit c37702c

Browse files
committed
add put env adapter
1 parent 427365a commit c37702c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Dotenv\Dotenv;
66
use Dotenv\Environment\DotenvFactory;
77
use Dotenv\Exception\InvalidFileException;
8+
use Dotenv\Environment\Adapter\PutenvAdapter;
89
use Symfony\Component\Console\Input\ArgvInput;
910
use Dotenv\Environment\Adapter\EnvConstAdapter;
1011
use Illuminate\Contracts\Foundation\Application;
@@ -88,7 +89,7 @@ protected function createDotenv($app)
8889
return Dotenv::create(
8990
$app->environmentPath(),
9091
$app->environmentFile(),
91-
new DotenvFactory([new EnvConstAdapter, new ServerConstAdapter])
92+
new DotenvFactory([new EnvConstAdapter, new ServerConstAdapter, new PutenvAdapter])
9293
);
9394
}
9495

0 commit comments

Comments
 (0)