1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Job/HttpAsyncJob.php
2016-07-23 14:11:39 +02:00

43 lines
919 B
PHP

<?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
* @return $this
*/
public function withParams($method, $url, $content, array $headers)
{
$this->jobParams = array($method, $url, $content, $headers);
return $this;
}
/**
* Set job parameters
*
* @access public
* @param string $method
* @param string $url
* @param string $content
* @param array $headers
* @return $this
*/
public function execute($method, $url, $content, array $headers)
{
$this->httpClient->doRequest($method, $url, $content, $headers);
}
}