19declare(strict_types=1);
36 $arguments = array_map(
static fn($value) => $value->getValue(),
$input);
38 $DIC->logger()->mail()->info(
'Mail delivery background task executed');
40 $DIC->logger()->mail()->debug(sprintf(
42 json_encode(array_slice($arguments, 0, 5), JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT)
45 $context_parameters = (array) unserialize(
$input[10]->
getValue(), [
'allowed_classes' =>
false]);
53 if (isset($context_parameters[
'auto_responder'])) {
54 if ($context_parameters[
'auto_responder']) {
55 $mail->autoresponder()->enableAutoresponder();
57 $mail->autoresponder()->disableAutoresponder();
64 ->withContextParameters($context_parameters);
72 (array) unserialize(
$input[6]->
getValue(), [
'allowed_classes' =>
false]),
75 $mail->sendMail($mail_data);
77 $DIC->logger()->mail()->info(
'Mail delivery background task finished');
run(array $input, Observer $observer)
getExpectedTimeOfTaskInSeconds()