mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 03:37:44 +08:00
Upgrade vlucas/phpdotenv to ^5.2 (#2620)
* Upgrade phpdotenv to ^5.2 * update * Update ClassLoader.php * Update
This commit is contained in:
parent
4aa5e28d61
commit
0d599b4db5
@ -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": {
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user