Skip to content

Commit

Permalink
Added NullDisableEventDispatcher to disable event dispatcher by def…
Browse files Browse the repository at this point in the history
…ault. (#4852)

Co-authored-by: huangdijia <[email protected]>
  • Loading branch information
limingxinleo and huangdijia authored Jun 16, 2022
1 parent 3194235 commit abc6a7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Command/WatchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@
namespace Hyperf\Watcher\Command;

use Hyperf\Command\Command;
use Hyperf\Command\NullDisableEventDispatcher;
use Hyperf\Watcher\Option;
use Hyperf\Watcher\Watcher;
use Psr\Container\ContainerInterface;
use Symfony\Component\Console\Input\InputOption;

class WatchCommand extends Command
{
use NullDisableEventDispatcher;

public function __construct(protected ContainerInterface $container)
{
parent::__construct('server:watch');
Expand Down

0 comments on commit abc6a7f

Please sign in to comment.