Cachet/app/Console/Kernel.php

60 lines
1.6 KiB
PHP
Raw Normal View History

2015-03-20 18:30:45 -06:00
<?php
/*
* This file is part of Cachet.
*
2015-07-06 17:37:01 +01:00
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2015-03-20 18:30:45 -06:00
namespace CachetHQ\Cachet\Console;
use CachetHQ\Cachet\Console\Commands\AppResetCommand;
use CachetHQ\Cachet\Console\Commands\AppUpdateCommand;
2016-08-03 17:44:21 +01:00
use CachetHQ\Cachet\Console\Commands\BeaconCommand;
use CachetHQ\Cachet\Console\Commands\DemoMetricPointSeederCommand;
2015-10-06 16:24:51 +01:00
use CachetHQ\Cachet\Console\Commands\DemoSeederCommand;
2017-01-02 18:35:03 +00:00
use CachetHQ\Cachet\Console\Commands\InstallCommand;
2017-02-03 21:44:46 +00:00
use CachetHQ\Cachet\Console\Commands\VersionCommand;
2015-03-20 18:30:45 -06:00
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
2016-10-07 12:25:15 +01:00
/**
* This is the console kernel class.
*
* @author Graham Campbell <graham@alt-three.com>
* @author Joseph Cohen <joe@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
2015-03-20 18:30:45 -06:00
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
AppResetCommand::class,
AppUpdateCommand::class,
2016-08-03 17:44:21 +01:00
BeaconCommand::class,
DemoMetricPointSeederCommand::class,
2015-10-06 16:24:51 +01:00
DemoSeederCommand::class,
2017-01-02 18:35:03 +00:00
InstallCommand::class,
2017-02-03 21:44:46 +00:00
VersionCommand::class,
2015-03-20 18:30:45 -06:00
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
2015-08-30 22:45:27 +01:00
*
* @return void
2015-03-20 18:30:45 -06:00
*/
protected function schedule(Schedule $schedule)
{
2016-08-16 19:16:07 +01:00
$schedule->command('cachet:beacon')->twiceDaily(0, 12);
2015-03-20 18:30:45 -06:00
}
}