Added new Beacon handling code

This commit is contained in:
James Brooks
2016-08-03 17:44:21 +01:00
parent dd2e77d479
commit 778664b20a
14 changed files with 446 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Console\Commands;
use CachetHQ\Cachet\Bus\Jobs\System\SendBeaconJob;
use Illuminate\Console\Command;
/**
* This is the beacon command class.
*
* @author James Brooks <james@alt-three.com>
*/
class BeaconCommand extends Command
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'cachet:beacon';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Send a beacon to the Cachet server.';
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
dispatch(new SendBeaconJob());
}
}