Skip to content

Commit a84bef7

Browse files
authored
Console pre-checks
1 parent 7affc8c commit a84bef7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ClusteerServiceProvider.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ public function boot()
2121
__DIR__.'/../config/clusteer.php', 'clusteer'
2222
);
2323

24-
$this->commands([
25-
Console\Commands\ServeClusteer::class,
26-
]);
24+
if ($this->app->runningInConsole()) {
25+
$this->commands([
26+
Console\Commands\ServeClusteer::class,
27+
]);
28+
}
2729
}
2830

2931
/**

0 commit comments

Comments
 (0)