Added command to schedule tasks if not ran for a specified X days

This commit is contained in:
Vincent Vermeulen 2017-10-04 22:40:29 +02:00
commit 5a7d145c94
2 changed files with 100 additions and 0 deletions

View file

@ -13,6 +13,7 @@ use PHPCensor\Command\InstallCommand;
use PHPCensor\Command\RebuildCommand;
use PHPCensor\Command\RebuildQueueCommand;
use PHPCensor\Command\RunCommand;
use PHPCensor\Command\ScheduleBuildCommand;
use PHPCensor\Command\WorkerCommand;
use PHPCensor\Logging\Handler;
use PHPCensor\Service\BuildService;
@ -134,5 +135,6 @@ class Application extends BaseApplication
$this->add(new CreateBuildCommand($projectStore, new BuildService($buildStore)));
$this->add(new WorkerCommand($logger));
$this->add(new RebuildQueueCommand($logger));
$this->add(new ScheduleBuildCommand($projectStore, $buildStore, new BuildService($buildStore)));
}
}