Skip to content

Commit

Permalink
环境变量读取增强 (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft authored Dec 11, 2021
1 parent 2923df4 commit 93d3ae6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

declare(strict_types=1);

use function Imi\env;
use Imi\Grpc\Client\GrpcClient;

return [
Expand Down Expand Up @@ -57,7 +58,7 @@
],
],
'resource' => [
'host' => imiGetEnv('REDIS_SERVER_HOST', '127.0.0.1'),
'host' => env('REDIS_SERVER_HOST', '127.0.0.1'),
'port' => 6379,
'password' => null,
],
Expand Down

0 comments on commit 93d3ae6

Please sign in to comment.