-
-
Notifications
You must be signed in to change notification settings - Fork 290
Closed
Labels
status:ready for adoptionFeel free to implement this issue.Feel free to implement this issue.type:enhancementEnhancementEnhancement
Description
Why are environment variables not passed to the created process?!
yii2-queue/src/cli/Command.php
Line 185 in 726a4fd
$process = new Process($cmd, null, null, $message, $ttr); |
I use the vlucas/phpdotenv library and my entire database connection configuration is in environment variables. Why can’t you pass local variables into the running process - this will solve the problem!
$env = isset($_ENV) ? $_ENV : null;
$process = new Process($cmd, null, $env, $message, $ttr);
Metadata
Metadata
Assignees
Labels
status:ready for adoptionFeel free to implement this issue.Feel free to implement this issue.type:enhancementEnhancementEnhancement