Skip to content

Commit

Permalink
Feat: 支持设置控制台默认执行用户
Browse files Browse the repository at this point in the history
  • Loading branch information
big-dream authored and liu21st committed Jun 26, 2024
1 parent 9bd16e7 commit 4594fae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/think/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ public function __construct(protected App $app)
//加载指令
$this->loadCommands();

// 设置执行用户
$user = $this->app->config->get('console.user');
if (!empty($user)) {
$this->setUser($user);
}

$this->start();
}

Expand Down

0 comments on commit 4594fae

Please sign in to comment.