Added worked a class observer

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
2019-05-06 05:45:35 +04:00
parent bde135499d
commit eb4b9b69f8
4 changed files with 110 additions and 28 deletions

View File

@ -79,7 +79,7 @@ final class notify extends adhoc_task {
public function post(record $service, array $data) {
$curl = new curl();
$curl->setHeader(['Content-Type: ' . $service->header]);
$curl->post($service->point, $data);
$curl->post($service->point, json_encode($data));
if (defined('PHPUNIT_TEST') && PHPUNIT_TEST) {
$this->debug = array_merge($this->debug ?? [], [