24 $arguments = array_map(
function ($value) {
25 return $value->getValue();
28 $DIC->logger()->mail()->info(
'Mail delivery background task executed');
30 $DIC->logger()->mail()->debug(sprintf(
32 json_encode(array_slice($arguments, 0, 5), JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT)
40 $mail->setSaveInSentbox((
bool)
$input[8]->getValue());
42 ->withContextId((
string)
$input[9]->getValue())
43 ->withContextParameters((array) unserialize(
$input[10]->getValue()));
46 (
string)
$input[1]->getValue(),
47 (
string)
$input[2]->getValue(),
48 (
string)
$input[3]->getValue(),
49 (
string)
$input[4]->getValue(),
50 (
string)
$input[5]->getValue(),
51 (array) unserialize(
$input[6]->getValue()),
52 (
bool)
$input[7]->getValue()
55 $DIC->logger()->mail()->info(
'Mail delivery background task finished');
An exception for terminatinating execution or to throw for unit testing.
getOutputType()
Type A single type.
getInputTypes()
Type[] A list of types that are taken as input.
run(array $input, Observer $observer)
Value The returned Value must be of the type hinted by getOutputType.
isStateless()
bool returns true iff the job's output ONLY depends on the input. Stateless task results may be cache...
getExpectedTimeOfTaskInSeconds()
int the amount of seconds this task usually taskes. If your task-duration scales with the the amount ...