spiral / app

Spiral Framework Skeleton HTTP Application: Queue, Console, Cycle ORM
https://spiral.dev/
MIT License
191 stars 20 forks source link

Dotenv\Dotenv::create() must be an instance of Dotenv\Repository\RepositoryInterface #37

Closed tamert closed 3 years ago

tamert commented 3 years ago

I entered composer update after it's can't serve ... The Dotenv want Dotenv\Repository\RepositoryInterface on /Bootloader/DotenvBootloader.php on line 36

"name": "vlucas/phpdotenv", "version": "v5.2.0",

Dotenv Document

 $repository = Dotenv\Repository\RepositoryBuilder::createWithDefaultAdapters()
    ->allowList(['FOO', 'BAR'])
    ->make();

$dotenv = Dotenv\Dotenv::create($repository, __DIR__);
$dotenv->load();

and DotenvBootloader.php on line 36

foreach (Dotenv::create($path, $file)->load() as $key => $value) {
    $env->set($key, $value);
}