Upgrade vlucas/phpdotenv to ^5.2 (#2620)

* Upgrade phpdotenv to ^5.2

* update

* Update ClassLoader.php

* Update
This commit is contained in:
李铭昕 2020-10-10 07:27:12 +08:00 committed by GitHub
parent 4aa5e28d61
commit 0d599b4db5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 13 deletions

View File

@ -83,7 +83,7 @@
"symfony/property-access": "^5.0",
"symfony/serializer": "^5.0",
"twig/twig": "^2.12",
"vlucas/phpdotenv": "^4.0",
"vlucas/phpdotenv": "^5.0",
"xxtime/flysystem-aliyun-oss": "^1.5"
},
"replace": {

View File

@ -18,11 +18,10 @@
},
"require": {
"php": ">=7.2",
"psr/container": "^1.0",
"vlucas/phpdotenv": "^4.0",
"symfony/finder": "^5.0",
"hyperf/contract": "~2.1.0",
"hyperf/utils": "~2.1.0"
"hyperf/utils": "~2.1.0",
"psr/container": "^1.0",
"symfony/finder": "^5.0"
},
"require-dev": {
"hyperf/di": "~2.1.0",

View File

@ -23,7 +23,8 @@
"nikic/php-parser": "^4.1",
"psr/container": "^1.0",
"roave/better-reflection": "^4.0",
"symfony/finder": "^5.0"
"symfony/finder": "^5.0",
"vlucas/phpdotenv": "^5.0"
},
"require-dev": {
"malukenho/docheader": "^0.1.6",

View File

@ -128,13 +128,8 @@ class ClassLoader
protected function loadDotenv(): void
{
$repository = RepositoryBuilder::create()
->withReaders([
new Adapter\PutenvAdapter(),
])
->withWriters([
new Adapter\PutenvAdapter(),
])
$repository = RepositoryBuilder::createWithNoAdapters()
->addAdapter(Adapter\PutenvAdapter::class)
->immutable()
->make();