Skip pre-scan for hot reload build command
This commit is contained in:
@@ -21,6 +21,7 @@ use Symfony\Component\Console\{Application as ConsoleApplication,
|
||||
Output\OutputInterface
|
||||
};
|
||||
use Kiri\Server\ServerCommand;
|
||||
use Kiri\Server\FileBuildCommand;
|
||||
use Kiri\Di\Inject\Container;
|
||||
use function config;
|
||||
|
||||
@@ -73,7 +74,7 @@ class Application extends BaseApplication
|
||||
*/
|
||||
public function beforeCommandExecute(OnBeforeCommandExecute $beforeCommandExecute): void
|
||||
{
|
||||
if ($beforeCommandExecute->command instanceof ServerCommand) {
|
||||
if ($beforeCommandExecute->command instanceof ServerCommand || $beforeCommandExecute->command instanceof FileBuildCommand) {
|
||||
return;
|
||||
}
|
||||
$scanner = $this->container->get(Scanner::class);
|
||||
|
||||
Reference in New Issue
Block a user