2 Commits
devel ... test

Author SHA1 Message Date
617d2e517b Merge branch 'refs/heads/main' into test 2023-05-31 16:00:30 +01:00
d9f3136cd9 Test task 2022-05-19 16:45:56 +01:00

View File

@@ -0,0 +1,38 @@
<?php
/*
* AVSDev UF Scheduler (https://avsdev.uk)
*
* @link https://git.avsdev.uk/avsdev/sprinkle-scheduler
* @license https://git.avsdev.uk/avsdev/sprinkle-scheduler/blob/master/LICENSE.md (LGPL-3.0 License)
*/
namespace UserFrosting\Sprinkle\Scheduler\Scheduler\Tasks;
use UserFrosting\Sprinkle\Scheduler\Scheduler\BaseTask;
/**
* Task Class
* Base class for scheduled tasks.
*
* @author Craig Williams (https://avsdev.uk)
*/
class TestTask extends BaseTask
{
/**
* Function used to specify the schedule for the task.
*/
public function schedule()
{
$this->everyMinute();
}
/**
* Function used to specify what the task does.
*/
public function run()
{
$this->ci->debugLogger->debug("running task");
return true;
}
}