]> git.localhorst.tv Git - alttp.git/blobdiff - app/Console/Commands/PleaseRefresh.php
add command to reload clients
[alttp.git] / app / Console / Commands / PleaseRefresh.php
diff --git a/app/Console/Commands/PleaseRefresh.php b/app/Console/Commands/PleaseRefresh.php
new file mode 100644 (file)
index 0000000..7ebea1c
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+
+namespace App\Console\Commands;
+
+use Illuminate\Console\Command;
+
+class PleaseRefresh extends Command
+{
+       /**
+        * The name and signature of the console command.
+        *
+        * @var string
+        */
+       protected $signature = 'app:refresh';
+
+       /**
+        * The console command description.
+        *
+        * @var string
+        */
+       protected $description = 'Ask clients to reload';
+
+       /**
+        * Execute the console command.
+        *
+        * @return int
+        */
+       public function handle()
+       {
+               \App\Events\PleaseRefresh::dispatch();
+               return 0;
+       }
+}