看板初始化提交

This commit is contained in:
zephyr
2026-06-01 21:23:12 -07:00
commit 54a842f4ab
2104 changed files with 241695 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
<?php
namespace Kanboard\Console;
use Kanboard\Core\Queue\JobHandler;
use SimpleQueue\Job;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Class JobCommand
*
* @package Kanboard\Console
* @author Frederic Guillot
*/
class JobCommand extends BaseCommand
{
protected function configure()
{
$this
->setName('job')
->setDescription('Execute individual job (read payload from stdin)')
;
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$payload = fgets(STDIN);
$job = new Job();
$job->unserialize($payload);
JobHandler::getInstance($this->container)->executeJob($job);
return 0;
}
}