1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00

feat: add swoole hooks

This commit is contained in:
Christy Jacob 2023-10-20 16:59:07 +04:00
parent ce14e05d1d
commit b9e5d0c890

View file

@ -5,6 +5,7 @@ namespace Appwrite\Platform\Workers;
use Appwrite\Template\Template;
use Exception;
use PHPMailer\PHPMailer\PHPMailer;
use Swoole\Runtime;
use Utopia\App;
use Utopia\CLI\Console;
use Utopia\Platform\Action;
@ -39,7 +40,7 @@ class Mails extends Action
*/
public function action(Message $message, Registry $register): void
{
Runtime::setHookFlags(SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_TCP);
$payload = $message->getPayload() ?? [];
if (empty($payload)) {