看板初始化提交

This commit is contained in:
zephyr
2026-06-01 21:23:12 -07:00
commit 27411ebedc
1827 changed files with 192340 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
<?php
namespace Kanboard\Job;
/**
* Async HTTP Client (fire and forget)
*
* @package Kanboard\Job
* @author Frederic Guillot
*/
class HttpAsyncJob extends BaseJob
{
/**
* Set job parameters
*
* @access public
* @param string $method
* @param string $url
* @param string $content
* @param array $headers
* @param bool $raiseForErrors
* @return $this
*/
public function withParams($method, $url, $content, array $headers, $raiseForErrors = false)
{
$this->jobParams = array($method, $url, $content, $headers, $raiseForErrors);
return $this;
}
/**
* Set job parameters
*
* @access public
* @param string $method
* @param string $url
* @param string $content
* @param array $headers
* @param bool $raiseForErrors
*/
public function execute($method, $url, $content, array $headers, $raiseForErrors = false)
{
$this->httpClient->doRequest($method, $url, $content, $headers, $raiseForErrors);
}
}