Cachet/app/Console/Commands/BeaconCommand.php

48 lines
908 B
PHP
Raw Normal View History

2016-08-03 17:44:21 +01:00
<?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
*/
2017-01-02 19:04:35 +00:00
protected $description = 'Communicate with the Cachet Beacon server';
2016-08-03 17:44:21 +01:00
/**
* Execute the console command.
*
* @return void
*/
2018-06-26 08:25:09 +01:00
public function handle()
2016-08-03 17:44:21 +01:00
{
dispatch(new SendBeaconJob());
2016-08-03 17:44:21 +01:00
}
}