diff --git a/src/Command/WatchCommand.php b/src/Command/WatchCommand.php index 6355d10..a9699f7 100644 --- a/src/Command/WatchCommand.php +++ b/src/Command/WatchCommand.php @@ -12,6 +12,7 @@ namespace Hyperf\Watcher\Command; use Hyperf\Command\Command; +use Hyperf\Command\NullDisableEventDispatcher; use Hyperf\Watcher\Option; use Hyperf\Watcher\Watcher; use Psr\Container\ContainerInterface; @@ -19,6 +20,8 @@ class WatchCommand extends Command { + use NullDisableEventDispatcher; + public function __construct(protected ContainerInterface $container) { parent::__construct('server:watch');