Skip to content

Commit

Permalink
改进file_monitor_path配置判断
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Nov 7, 2019
1 parent 28ef158 commit 188f6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function execute(Input $input, Output $output)
// 设置文件监控
if (DIRECTORY_SEPARATOR !== '\\' && (App::isDebug() || !empty($this->config['file_monitor']))) {
$interval = $this->config['file_monitor_interval'] ?? 2;
$paths = $this->config['file_monitor_path'] ?? [App::getAppPath(), App::getConfigPath()];
$paths = !empty($this->config['file_monitor_path']) ? $this->config['file_monitor_path'] : [App::getAppPath(), App::getConfigPath()];
$worker->setMonitor($interval, $paths);
unset($this->config['file_monitor'], $this->config['file_monitor_interval'], $this->config['file_monitor_path']);
}
Expand Down

0 comments on commit 188f6af

Please sign in to comment.