Skip to content

Commit 0a1cd2c

Browse files
[shopsys] emails are now sent via queue (#2998)
1 parent ccf2512 commit 0a1cd2c

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/Model/Mail/Email.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,24 @@ public function getDomainId(): int
3030
{
3131
return $this->domainId;
3232
}
33+
34+
/**
35+
* @internal
36+
* @return array
37+
*/
38+
public function __serialize(): array
39+
{
40+
return [$this->domainId, parent::__serialize()];
41+
}
42+
43+
/**
44+
* @internal
45+
* @param array $data
46+
*/
47+
public function __unserialize(array $data): void
48+
{
49+
[$this->domainId, $parentData] = $data;
50+
51+
parent::__unserialize($parentData);
52+
}
3353
}

0 commit comments

Comments
 (0)