diff --git a/.env.example b/.env.example index dc1c493..458a7f1 100644 --- a/.env.example +++ b/.env.example @@ -99,6 +99,8 @@ MODULE_IMPORT_REGISTRATION_DRAFT=module_import_registration_draft QUEUE_ACCOUNTABILITY=queue_accountability MODULE_ACCOUNTABILITY_ADM=module_accountability_adm MODULE_ACCOUNTABILITY_PROPONENT=module_accountability_proponent +QUEUE_MAIL_NOTIFICATION=queue_mail_notification +MODULE_MAIL_NOTIFICATION=module_mail_notification PLUGIN_PUBLISHED_RECOURSES=plugin_published_recourses RABBITMQ_IMPORT_REGISTRATION_RETRY_ENABLED=true diff --git a/.env.testing b/.env.testing index 19c1fe5..5b713a7 100644 --- a/.env.testing +++ b/.env.testing @@ -22,7 +22,7 @@ LOG_LEVEL=debug DB_CONNECTION=pgsql DB_HOST=ip_ou_servico DB_PORT=5433 -DB_DATABASE=api_email +DB_DATABASE=api_email_testing DB_USERNAME=postgres DB_PASSWORD=12345678 @@ -98,6 +98,8 @@ MODULE_IMPORT_REGISTRATION_DRAFT=module_import_registration_draft QUEUE_ACCOUNTABILITY=queue_accountability MODULE_ACCOUNTABILITY_ADM=module_accountability_adm MODULE_ACCOUNTABILITY_PROPONENT=module_accountability_proponent +QUEUE_MAIL_NOTIFICATION=queue_mail_notification +MODULE_MAIL_NOTIFICATION=module_mail_notification PLUGIN_PUBLISHED_RECOURSES=plugin_published_recourses JWT_SECRET=JWT_SECRET diff --git a/app/Console/Commands/MailNotificationCommand.php b/app/Console/Commands/MailNotificationCommand.php new file mode 100644 index 0000000..c3f28b3 --- /dev/null +++ b/app/Console/Commands/MailNotificationCommand.php @@ -0,0 +1,107 @@ +queueService->consume( + $queue, + config('rabbitmq.exchange_default'), + config('rabbitmq.routing.module_mail_notification'), + function (AMQPMessage $msg): void { + $this->processMessage($msg); + } + ); + + return self::SUCCESS; + } catch (Throwable $e) { + Log::critical('O consumidor RabbitMQ foi encerrado por uma falha.', [ + 'exception' => $e->getMessage(), + 'queue' => $queue, + ]); + + report($e); + + return self::FAILURE; + } + } + + protected function processMessage(AMQPMessage $msg): void + { + $body = $msg->getBody(); + $context = ['body_sha256' => hash('sha256', $body)]; + + try { + try { + $data = json_decode($body, true, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $e) { + throw new InvalidRegistrationMessageException('O corpo da mensagem não contém um JSON válido.', 0, $e); + } + + if (!is_array($data)) { + throw new InvalidRegistrationMessageException('A mensagem deve conter um objeto JSON.'); + } + + $context += [ + 'message_id' => $data['message_id'] ?? null, + 'registration_id' => $data['registration_id'] ?? null, + ]; + + $this->processor->process($data); + } catch (InvalidRegistrationMessageException $e) { + Log::error('Mensagem de notificação de inscrição inválida.', $context + ['exception' => $e->getMessage()]); + + $msg->nack(false, false); // DLQ + + return; + } catch (EmailDeliveryOutcomeUnknownException $e) { + Log::critical('O resultado do envio da notificação de inscrição é desconhecido.', $context + [ + 'exception' => $e->getMessage(), + ]); + + report($e); + // O status unknown foi persistido e bloqueia reenvio; o ACK fica após os catches. + } catch (Throwable $e) { + Log::error('Falha ao enviar notificação de inscrição.', $context + ['exception' => $e->getMessage()]); + + report($e); + + $msg->nack(false, false); // DLQ; não reenviar SMTP incerto + + return; + } + + $msg->ack(); + } +} diff --git a/app/Mail/MailNotification.php b/app/Mail/MailNotification.php new file mode 100644 index 0000000..561ee06 --- /dev/null +++ b/app/Mail/MailNotification.php @@ -0,0 +1,41 @@ +mailSubject, + ); + } + + public function content(): Content + { + return new Content( + htmlString: $this->htmlBody, + ); + } + + /** + * @return array + */ + public function attachments(): array + { + return []; + } +} diff --git a/app/Services/MailNotificationProcessor.php b/app/Services/MailNotificationProcessor.php new file mode 100644 index 0000000..f7f8b52 --- /dev/null +++ b/app/Services/MailNotificationProcessor.php @@ -0,0 +1,132 @@ + ['required', 'string'], + 'event' => ['sometimes', 'string', 'in:registration.start,registration.send'], + 'registration_id' => ['required', 'integer', 'min:1'], + 'to' => ['required', 'email'], + 'subject' => ['required', 'string'], + 'body' => ['required', 'string'], + ]); + + if ($validator->fails()) { + throw new InvalidRegistrationMessageException($validator->errors()->toJson()); + } + + $context = [ + 'message_id' => $data['message_id'], + 'event' => $data['event'] ?? null, + 'registration_id' => $data['registration_id'], + ]; + + // O job do Mapas pode ser reprocessado e publicar a mesma mensagem de novo + $dispatch = $this->reserve($data, $context); + + if (!$dispatch) { + Log::warning('Mensagem duplicada ou já processada.', $context); + + return; + } + + // A partir daqui uma exceção pode significar um e-mail aceito pelo SMTP + try { + Mail::to($data['to'])->send(new MailNotification($data['subject'], $data['body'])); + + $dispatch->update([ + 'status' => 'sent', + 'dispatched_at' => now(), + ]); + } catch (Throwable $e) { + $this->markUnknown($dispatch, $e, $context); + + throw new EmailDeliveryOutcomeUnknownException('O envio terminou com resultado desconhecido.', 0, $e); + } + + Log::info('E-mail de notificação de inscrição enviado.', $context + ['email_dispatch_id' => $dispatch->id]); + } + + /** + * Reserva o message_id de forma atômica (índice UNIQUE parcial). + * + * Retorna null quando a mensagem já foi enviada, está em envio ou + * tem resultado incerto; nesses casos não há reenvio automático. + */ + private function reserve(array $data, array $context): ?EmailDispatch + { + return DB::transaction(function () use ($data, $context) { + $now = now(); + + EmailDispatch::query()->insertOrIgnore([ + 'to' => $data['to'], + 'subject' => $data['subject'], + 'content' => $data['body'], + 'mailable_type' => MailNotification::class, + 'meta' => json_encode($context), + 'status' => 'pending', + 'created_at' => $now, + 'updated_at' => $now, + ]); + + $dispatch = EmailDispatch::query() + ->where('mailable_type', MailNotification::class) + ->where('meta->message_id', $data['message_id']) + ->lockForUpdate() + ->firstOrFail(); + + if (!in_array($dispatch->status, ['pending', 'failed'], true)) { + return null; + } + + $dispatch->update([ + 'status' => 'sending', + 'attempted_at' => $now, + 'failed_at' => null, + 'error_message' => null, + ]); + + return $dispatch; + }); + } + + private function markUnknown(EmailDispatch $dispatch, Throwable $exception, array $context): void + { + try { + $dispatch->update([ + 'status' => 'unknown', + 'error_message' => Str::limit($exception->getMessage(), 2000), + ]); + } catch (Throwable $databaseException) { + Log::critical('Não foi possível registrar o resultado desconhecido do envio.', $context + [ + 'email_dispatch_id' => $dispatch->id, + 'exception' => $exception->getMessage(), + 'database_exception' => $databaseException->getMessage(), + ]); + + // O status sending continua bloqueando um segundo envio; a mensagem vai para a DLQ. + throw $databaseException; + } + } +} diff --git a/composer.lock b/composer.lock index b7c19a9..3d3a9dc 100644 --- a/composer.lock +++ b/composer.lock @@ -64,7 +64,8 @@ "type": "github" } ], - "time": "2026-02-10T14:33:43+00:00" + "time": "2026-02-10T14:33:43+00:00", + "published-time": "2026-02-10T14:36:13+00:00" }, { "name": "carbonphp/carbon-doctrine-types", @@ -138,7 +139,8 @@ "type": "tidelift" } ], - "time": "2026-09-06T14:11:38+00:00" + "time": "2026-09-06T14:11:38+00:00", + "published-time": "2026-09-06T14:15:00+00:00" }, { "name": "dflydev/dot-access-data", @@ -213,7 +215,8 @@ "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.3" }, - "time": "2024-07-08T12:26:09+00:00" + "time": "2024-07-08T12:26:09+00:00", + "published-time": "2024-07-08T12:27:13+00:00" }, { "name": "doctrine/inflector", @@ -303,7 +306,8 @@ "type": "tidelift" } ], - "time": "2026-10-26T08:14:14+00:00" + "time": "2026-10-26T08:14:14+00:00", + "published-time": "2026-10-26T20:06:59+00:00" }, { "name": "doctrine/lexer", @@ -378,7 +382,8 @@ "type": "tidelift" } ], - "time": "2026-10-01T06:59:29+00:00" + "time": "2026-10-01T06:59:29+00:00", + "published-time": "2026-10-01T07:01:28+00:00" }, { "name": "dragonmantank/cron-expression", @@ -442,30 +447,31 @@ "type": "github" } ], - "time": "2026-10-19T17:53:57+00:00" + "time": "2026-10-19T17:53:57+00:00", + "published-time": "2026-10-19T17:54:31+00:00" }, { "name": "egulias/email-validator", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/egulias/EmailValidator.git", - "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa" + "reference": "9bef884e12278a7b89b64adbfb9379c021d3c102" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa", - "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/9bef884e12278a7b89b64adbfb9379c021d3c102", + "reference": "9bef884e12278a7b89b64adbfb9379c021d3c102", "shasum": "" }, "require": { - "doctrine/lexer": "^2.0 || ^3.0", + "doctrine/lexer": "^3.0.3", "php": ">=8.1", - "symfony/polyfill-intl-idn": "^1.26" + "symfony/polyfill-intl-idn": "^1.43" }, "require-dev": { - "phpunit/phpunit": "^10.2", - "vimeo/psalm": "^5.12" + "phpunit/phpunit": "^10.5.67", + "vimeo/psalm": "^5.26.1" }, "suggest": { "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" @@ -501,7 +507,7 @@ ], "support": { "issues": "https://github.com/egulias/EmailValidator/issues", - "source": "https://github.com/egulias/EmailValidator/tree/4.0.4" + "source": "https://github.com/egulias/EmailValidator/tree/4.0.5" }, "funding": [ { @@ -509,7 +515,8 @@ "type": "github" } ], - "time": "2025-03-06T22:45:56+00:00" + "time": "2026-11-22T16:52:20+00:00", + "published-time": "2026-11-22T22:05:57+00:00" }, { "name": "fruitcake/php-cors", @@ -580,7 +587,8 @@ "type": "github" } ], - "time": "2025-12-03T09:33:47+00:00" + "time": "2025-12-03T09:33:47+00:00", + "published-time": "2025-12-03T09:37:01+00:00" }, { "name": "graham-campbell/result-type", @@ -642,26 +650,27 @@ "type": "tidelift" } ], - "time": "2026-08-24T09:06:52+00:00" + "time": "2026-08-24T09:06:52+00:00", + "published-time": "2026-08-24T09:07:57+00:00" }, { "name": "guzzlehttp/guzzle", - "version": "7.16.1", + "version": "7.17.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "81755d989b3007ca7f88a069857553cd08e7dc2e" + "reference": "f61ba5ea0a55032a55ddbb72cab7d307c1043654" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/81755d989b3007ca7f88a069857553cd08e7dc2e", - "reference": "81755d989b3007ca7f88a069857553cd08e7dc2e", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/f61ba5ea0a55032a55ddbb72cab7d307c1043654", + "reference": "f61ba5ea0a55032a55ddbb72cab7d307c1043654", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^2.6", - "guzzlehttp/psr7": "^2.13.2", + "guzzlehttp/promises": "^2.6.2", + "guzzlehttp/psr7": "^2.13.6", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", "symfony/deprecation-contracts": "^2.5 || ^3.0", @@ -754,7 +763,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.16.1" + "source": "https://github.com/guzzle/guzzle/tree/7.17.0" }, "funding": [ { @@ -770,20 +779,21 @@ "type": "tidelift" } ], - "time": "2026-10-25T21:35:21+00:00" + "time": "2026-11-22T16:49:11+00:00", + "published-time": "2026-11-22T16:50:19+00:00" }, { "name": "guzzlehttp/promises", - "version": "2.6.0", + "version": "2.6.2", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "3d88c829bd5f13d13847b39067dbf09a60af2154" + "reference": "72e93ed2b1f3d8c09d1460c950bd5726face7ccd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/3d88c829bd5f13d13847b39067dbf09a60af2154", - "reference": "3d88c829bd5f13d13847b39067dbf09a60af2154", + "url": "https://api.github.com/repos/guzzle/promises/zipball/72e93ed2b1f3d8c09d1460c950bd5726face7ccd", + "reference": "72e93ed2b1f3d8c09d1460c950bd5726face7ccd", "shasum": "" }, "require": { @@ -838,7 +848,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.6.0" + "source": "https://github.com/guzzle/promises/tree/2.6.2" }, "funding": [ { @@ -854,20 +864,21 @@ "type": "tidelift" } ], - "time": "2026-10-18T12:46:59+00:00" + "time": "2026-11-21T03:45:23+00:00", + "published-time": "2026-11-21T03:46:19+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.13.2", + "version": "2.13.6", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "adee536f95101929f262b8c59e8a61472f347d58" + "reference": "2bd3dccf56e99cdacf74b1ad5e06a08a5a7739f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/adee536f95101929f262b8c59e8a61472f347d58", - "reference": "adee536f95101929f262b8c59e8a61472f347d58", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/2bd3dccf56e99cdacf74b1ad5e06a08a5a7739f2", + "reference": "2bd3dccf56e99cdacf74b1ad5e06a08a5a7739f2", "shasum": "" }, "require": { @@ -957,7 +968,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.13.2" + "source": "https://github.com/guzzle/psr7/tree/2.13.6" }, "funding": [ { @@ -973,7 +984,8 @@ "type": "tidelift" } ], - "time": "2026-10-17T23:49:46+00:00" + "time": "2026-11-21T23:48:40+00:00", + "published-time": "2026-11-21T23:49:39+00:00" }, { "name": "guzzlehttp/uri-template", @@ -1059,7 +1071,8 @@ "type": "tidelift" } ], - "time": "2026-08-24T09:15:32+00:00" + "time": "2026-08-24T09:15:32+00:00", + "published-time": "2026-08-24T09:15:56+00:00" }, { "name": "jean85/pretty-package-versions", @@ -1119,7 +1132,8 @@ "issues": "https://github.com/Jean85/pretty-package-versions/issues", "source": "https://github.com/Jean85/pretty-package-versions/tree/2.1.1" }, - "time": "2025-03-19T14:43:43+00:00" + "time": "2025-03-19T14:43:43+00:00", + "published-time": "2025-03-19T14:50:06+00:00" }, { "name": "juniorshyko/phpextensive", @@ -1159,20 +1173,21 @@ "issues": "https://github.com/Junior-Shyko/phpextensive/issues", "source": "https://github.com/Junior-Shyko/phpextensive/tree/v1.0.0" }, - "time": "2024-10-24T18:55:53+00:00" + "time": "2024-10-24T18:55:53+00:00", + "published-time": "2024-10-24T19:06:43+00:00" }, { "name": "laravel/framework", - "version": "v12.71.0", + "version": "v12.74.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "64dc24f5d965add4d402b4b8b64f59b561112af5" + "reference": "935434e4fad6a3aede68920bcc6fdb7f3411f312" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/64dc24f5d965add4d402b4b8b64f59b561112af5", - "reference": "64dc24f5d965add4d402b4b8b64f59b561112af5", + "url": "https://api.github.com/repos/laravel/framework/zipball/935434e4fad6a3aede68920bcc6fdb7f3411f312", + "reference": "935434e4fad6a3aede68920bcc6fdb7f3411f312", "shasum": "" }, "require": { @@ -1381,20 +1396,21 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2026-11-03T15:08:25+00:00" + "time": "2026-11-24T16:20:46+00:00", + "published-time": "2026-11-24T16:20:58+00:00" }, { "name": "laravel/prompts", - "version": "v0.3.27", + "version": "v0.3.28", "source": { "type": "git", "url": "https://github.com/laravel/prompts.git", - "reference": "abdfc75a1ae6c6f21522daed50da7124cbff09d2" + "reference": "72247703c4d4ac1d6122955c90433aa9429bd236" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/abdfc75a1ae6c6f21522daed50da7124cbff09d2", - "reference": "abdfc75a1ae6c6f21522daed50da7124cbff09d2", + "url": "https://api.github.com/repos/laravel/prompts/zipball/72247703c4d4ac1d6122955c90433aa9429bd236", + "reference": "72247703c4d4ac1d6122955c90433aa9429bd236", "shasum": "" }, "require": { @@ -1437,36 +1453,38 @@ ], "description": "Add beautiful and user-friendly forms to your command-line applications.", "support": { - "source": "https://github.com/laravel/prompts/tree/v0.3.27" + "source": "https://github.com/laravel/prompts/tree/v0.3.28" }, - "time": "2026-11-09T16:07:10+00:00" + "time": "2026-11-23T14:41:10+00:00", + "published-time": "2026-11-24T16:27:03+00:00" }, { "name": "laravel/sanctum", - "version": "v4.3.3", + "version": "v4.5.0", "source": { "type": "git", "url": "https://github.com/laravel/sanctum.git", - "reference": "fee27a573d1a013af3721d86153a65e0b11927e6" + "reference": "a8f7ef1bd5f8b78159effa1ffae851b0dc72cd8b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/sanctum/zipball/fee27a573d1a013af3721d86153a65e0b11927e6", - "reference": "fee27a573d1a013af3721d86153a65e0b11927e6", + "url": "https://api.github.com/repos/laravel/sanctum/zipball/a8f7ef1bd5f8b78159effa1ffae851b0dc72cd8b", + "reference": "a8f7ef1bd5f8b78159effa1ffae851b0dc72cd8b", "shasum": "" }, "require": { "ext-json": "*", - "illuminate/console": "^11.0|^12.0|^13.0", - "illuminate/contracts": "^11.0|^12.0|^13.0", - "illuminate/database": "^11.0|^12.0|^13.0", - "illuminate/support": "^11.0|^12.0|^13.0", + "illuminate/console": "^12.0|^13.0", + "illuminate/contracts": "^12.0|^13.0", + "illuminate/database": "^12.0|^13.0", + "illuminate/support": "^12.0|^13.0", "php": "^8.2", "symfony/console": "^7.0|^8.0" }, "require-dev": { + "jasonmccreary/double": "^1.0", "mockery/mockery": "^1.6", - "orchestra/testbench": "^9.15|^10.8|^11.0", + "orchestra/testbench": "^10.8|^11.0", "phpstan/phpstan": "^1.10" }, "type": "library", @@ -1502,20 +1520,21 @@ "issues": "https://github.com/laravel/sanctum/issues", "source": "https://github.com/laravel/sanctum" }, - "time": "2026-06-23T18:26:55+00:00" + "time": "2026-11-11T14:11:40+00:00", + "published-time": "2026-11-17T15:20:05+00:00" }, { "name": "laravel/serializable-closure", - "version": "v2.1.0", + "version": "v2.2.0", "source": { "type": "git", "url": "https://github.com/laravel/serializable-closure.git", - "reference": "2d5869a838bbcf37e0d8b0568fc41914e81374b5" + "reference": "2bfb44e8af009b553ed2c060c94b0bc3c67b4769" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/2d5869a838bbcf37e0d8b0568fc41914e81374b5", - "reference": "2d5869a838bbcf37e0d8b0568fc41914e81374b5", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/2bfb44e8af009b553ed2c060c94b0bc3c67b4769", + "reference": "2bfb44e8af009b553ed2c060c94b0bc3c67b4769", "shasum": "" }, "require": { @@ -1563,7 +1582,8 @@ "issues": "https://github.com/laravel/serializable-closure/issues", "source": "https://github.com/laravel/serializable-closure" }, - "time": "2026-09-22T14:32:34+00:00" + "time": "2026-10-14T21:20:29+00:00", + "published-time": "2026-11-10T16:11:08+00:00" }, { "name": "laravel/tinker", @@ -1629,39 +1649,40 @@ "issues": "https://github.com/laravel/tinker/issues", "source": "https://github.com/laravel/tinker/tree/v2.11.1" }, - "time": "2026-02-06T14:12:35+00:00" + "time": "2026-02-06T14:12:35+00:00", + "published-time": "2026-02-10T18:45:37+00:00" }, { "name": "lcobucci/jwt", - "version": "5.6.1", + "version": "5.7.0", "source": { "type": "git", "url": "https://github.com/lcobucci/jwt.git", - "reference": "482760068e5a55a9045feddb3e2fc3f878cbd577" + "reference": "d7e47accd18c44268e1dcf01eec19f24d6904862" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lcobucci/jwt/zipball/482760068e5a55a9045feddb3e2fc3f878cbd577", - "reference": "482760068e5a55a9045feddb3e2fc3f878cbd577", + "url": "https://api.github.com/repos/lcobucci/jwt/zipball/d7e47accd18c44268e1dcf01eec19f24d6904862", + "reference": "d7e47accd18c44268e1dcf01eec19f24d6904862", "shasum": "" }, "require": { "ext-openssl": "*", "ext-sodium": "*", - "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", + "php": "~8.4.0 || ~8.5.0 || ~8.6.0", "psr/clock": "^1.0" }, "require-dev": { - "infection/infection": "^0.29", - "lcobucci/clock": "^3.2", - "lcobucci/coding-standard": "^11.0", - "phpbench/phpbench": "^1.2", - "phpstan/extension-installer": "^1.2", - "phpstan/phpstan": "^1.10.7", - "phpstan/phpstan-deprecation-rules": "^1.1.3", - "phpstan/phpstan-phpunit": "^1.3.10", - "phpstan/phpstan-strict-rules": "^1.5.0", - "phpunit/phpunit": "^11.1" + "infection/infection": "^0.35", + "lcobucci/clock": "^3.7", + "lcobucci/coding-standard": "^12.1", + "phpbench/phpbench": "^1.7", + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.3", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.1", + "phpstan/phpstan-strict-rules": "^2.1", + "phpunit/phpunit": "^13.4" }, "suggest": { "lcobucci/clock": ">= 3.2" @@ -1690,7 +1711,7 @@ ], "support": { "issues": "https://github.com/lcobucci/jwt/issues", - "source": "https://github.com/lcobucci/jwt/tree/5.6.1" + "source": "https://github.com/lcobucci/jwt/tree/5.7.0" }, "funding": [ { @@ -1702,20 +1723,21 @@ "type": "patreon" } ], - "time": "2026-10-10T09:42:14+00:00" + "time": "2026-11-19T21:02:34+00:00", + "published-time": "2026-11-19T21:06:03+00:00" }, { "name": "league/commonmark", - "version": "2.10.7", + "version": "2.10.10", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "8eb53e906fd60c67038d22f1f1cab420ed58b8be" + "reference": "3e956235b26ea34ea721a302e27eae9a32cb9ef0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/8eb53e906fd60c67038d22f1f1cab420ed58b8be", - "reference": "8eb53e906fd60c67038d22f1f1cab420ed58b8be", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/3e956235b26ea34ea721a302e27eae9a32cb9ef0", + "reference": "3e956235b26ea34ea721a302e27eae9a32cb9ef0", "shasum": "" }, "require": { @@ -1809,7 +1831,8 @@ "type": "tidelift" } ], - "time": "2026-10-31T13:35:37+00:00" + "time": "2026-11-26T14:08:53+00:00", + "published-time": "2026-11-26T14:12:37+00:00" }, { "name": "league/config", @@ -1891,7 +1914,8 @@ "type": "github" } ], - "time": "2022-12-11T20:36:23+00:00" + "time": "2022-12-11T20:36:23+00:00", + "published-time": "2022-12-11T20:36:45+00:00" }, { "name": "league/flysystem", @@ -1974,7 +1998,8 @@ "issues": "https://github.com/thephpleague/flysystem/issues", "source": "https://github.com/thephpleague/flysystem/tree/3.36.0" }, - "time": "2026-09-02T08:00:27+00:00" + "time": "2026-09-02T08:00:27+00:00", + "published-time": "2026-09-02T08:01:40+00:00" }, { "name": "league/flysystem-local", @@ -2023,7 +2048,8 @@ "support": { "source": "https://github.com/thephpleague/flysystem-local/tree/3.35.3" }, - "time": "2026-08-12T13:29:21+00:00" + "time": "2026-08-12T13:29:21+00:00", + "published-time": "2026-08-22T12:57:18+00:00" }, { "name": "league/mime-type-detection", @@ -2079,7 +2105,8 @@ "type": "tidelift" } ], - "time": "2026-07-09T11:49:27+00:00" + "time": "2026-07-09T11:49:27+00:00", + "published-time": "2026-07-09T11:50:09+00:00" }, { "name": "league/uri", @@ -2178,7 +2205,8 @@ "type": "github" } ], - "time": "2026-11-04T12:45:07+00:00" + "time": "2026-11-04T12:45:07+00:00", + "published-time": "2026-11-04T13:02:21+00:00" }, { "name": "league/uri-interfaces", @@ -2262,20 +2290,21 @@ "type": "github" } ], - "time": "2026-11-04T12:45:07+00:00" + "time": "2026-11-04T12:45:07+00:00", + "published-time": "2026-11-04T13:02:27+00:00" }, { "name": "monolog/monolog", - "version": "3.12.1", + "version": "3.13.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "d7059e4c691d05ea1222b5124bed0f961be46e15" + "reference": "1f5f55bb4a9a230ff6d8a4ceccea31d10b0142ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/d7059e4c691d05ea1222b5124bed0f961be46e15", - "reference": "d7059e4c691d05ea1222b5124bed0f961be46e15", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/1f5f55bb4a9a230ff6d8a4ceccea31d10b0142ac", + "reference": "1f5f55bb4a9a230ff6d8a4ceccea31d10b0142ac", "shasum": "" }, "require": { @@ -2355,7 +2384,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/3.12.1" + "source": "https://github.com/Seldaek/monolog/tree/3.13.0" }, "funding": [ { @@ -2367,7 +2396,8 @@ "type": "tidelift" } ], - "time": "2026-09-29T19:21:12+00:00" + "time": "2026-11-16T10:43:05+00:00", + "published-time": "2026-11-16T10:45:37+00:00" }, { "name": "nesbot/carbon", @@ -2473,7 +2503,8 @@ "type": "tidelift" } ], - "time": "2026-10-25T14:32:48+00:00" + "time": "2026-10-25T14:32:48+00:00", + "published-time": "2026-10-25T14:41:05+00:00" }, { "name": "nette/schema", @@ -2540,7 +2571,8 @@ "issues": "https://github.com/nette/schema/issues", "source": "https://github.com/nette/schema/tree/v1.4.0" }, - "time": "2026-10-22T02:12:50+00:00" + "time": "2026-10-22T02:12:50+00:00", + "published-time": "2026-10-22T02:14:45+00:00" }, { "name": "nette/utils", @@ -2631,7 +2663,8 @@ "issues": "https://github.com/nette/utils/issues", "source": "https://github.com/nette/utils/tree/v4.1.6" }, - "time": "2026-10-20T17:07:56+00:00" + "time": "2026-10-20T17:07:56+00:00", + "published-time": "2026-10-20T17:48:30+00:00" }, { "name": "nikic/php-parser", @@ -2688,7 +2721,8 @@ "issues": "https://github.com/nikic/PHP-Parser/issues", "source": "https://github.com/nikic/PHP-Parser/tree/v5.9.0" }, - "time": "2026-09-13T18:51:52+00:00" + "time": "2026-09-13T18:51:52+00:00", + "published-time": "2026-09-13T18:53:16+00:00" }, { "name": "nunomaduro/termwind", @@ -2775,20 +2809,21 @@ "type": "github" } ], - "time": "2026-11-07T03:57:16+00:00" + "time": "2026-11-07T03:57:16+00:00", + "published-time": "2026-11-07T04:01:24+00:00" }, { "name": "nyholm/psr7", - "version": "1.8.2", + "version": "1.8.3", "source": { "type": "git", "url": "https://github.com/Nyholm/psr7.git", - "reference": "a71f2b11690f4b24d099d6b16690a90ae14fc6f3" + "reference": "26c1581611614447a5ff753a450390a23f3e323e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Nyholm/psr7/zipball/a71f2b11690f4b24d099d6b16690a90ae14fc6f3", - "reference": "a71f2b11690f4b24d099d6b16690a90ae14fc6f3", + "url": "https://api.github.com/repos/Nyholm/psr7/zipball/26c1581611614447a5ff753a450390a23f3e323e", + "reference": "26c1581611614447a5ff753a450390a23f3e323e", "shasum": "" }, "require": { @@ -2841,7 +2876,7 @@ ], "support": { "issues": "https://github.com/Nyholm/psr7/issues", - "source": "https://github.com/Nyholm/psr7/tree/1.8.2" + "source": "https://github.com/Nyholm/psr7/tree/1.8.3" }, "funding": [ { @@ -2853,7 +2888,8 @@ "type": "github" } ], - "time": "2024-09-09T07:06:30+00:00" + "time": "2026-11-26T08:19:16+00:00", + "published-time": "2026-11-26T08:20:50+00:00" }, { "name": "owen-it/laravel-auditing", @@ -2937,20 +2973,21 @@ "issues": "https://github.com/owen-it/laravel-auditing/issues", "source": "https://github.com/owen-it/laravel-auditing" }, - "time": "2026-10-28T13:34:34+00:00" + "time": "2026-10-28T13:34:34+00:00", + "published-time": "2026-11-02T11:32:49+00:00" }, { "name": "paragonie/constant_time_encoding", - "version": "v3.1.4", + "version": "v3.1.5", "source": { "type": "git", "url": "https://github.com/paragonie/constant_time_encoding.git", - "reference": "5efef6e6cb43e088ccab7d0c1e2f2ab25b9e8b54" + "reference": "ceed38ba49d98b85808edfc4f04750ff61eb9739" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/5efef6e6cb43e088ccab7d0c1e2f2ab25b9e8b54", - "reference": "5efef6e6cb43e088ccab7d0c1e2f2ab25b9e8b54", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/ceed38ba49d98b85808edfc4f04750ff61eb9739", + "reference": "ceed38ba49d98b85808edfc4f04750ff61eb9739", "shasum": "" }, "require": { @@ -3006,7 +3043,8 @@ "issues": "https://github.com/paragonie/constant_time_encoding/issues", "source": "https://github.com/paragonie/constant_time_encoding" }, - "time": "2026-11-06T20:31:19+00:00" + "time": "2026-11-18T13:55:22+00:00", + "published-time": "2026-11-18T13:55:46+00:00" }, { "name": "php-amqplib/php-amqplib", @@ -3087,7 +3125,8 @@ "issues": "https://github.com/php-amqplib/php-amqplib/issues", "source": "https://github.com/php-amqplib/php-amqplib/tree/v3.7.5" }, - "time": "2026-09-28T19:08:43+00:00" + "time": "2026-09-28T19:08:43+00:00", + "published-time": "2026-09-28T19:10:54+00:00" }, { "name": "phpoption/phpoption", @@ -3162,20 +3201,21 @@ "type": "tidelift" } ], - "time": "2026-08-24T00:54:40+00:00" + "time": "2026-08-24T00:54:40+00:00", + "published-time": "2026-08-24T01:09:05+00:00" }, { "name": "phpseclib/phpseclib", - "version": "4.0.3", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/phpseclib/phpseclib.git", - "reference": "6077cecfed9e371993d3aa339b0afeb23f7bf636" + "reference": "44303c95a83b6071229cdea56cdcd52712730476" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/6077cecfed9e371993d3aa339b0afeb23f7bf636", - "reference": "6077cecfed9e371993d3aa339b0afeb23f7bf636", + "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/44303c95a83b6071229cdea56cdcd52712730476", + "reference": "44303c95a83b6071229cdea56cdcd52712730476", "shasum": "" }, "require": { @@ -3184,12 +3224,12 @@ "symfony/polyfill-php82": "^1.26" }, "require-dev": { - "brianium/paratest": "^7.22", + "brianium/paratest": "7.27.5", "ext-xml": "*", - "php-parallel-lint/php-parallel-lint": "^1.3", - "phpunit/phpunit": "^13", - "squizlabs/php_codesniffer": "^3.7", - "vimeo/psalm": "*" + "php-parallel-lint/php-parallel-lint": "1.4.0", + "phpunit/phpunit": "13.4.6", + "squizlabs/php_codesniffer": "4.0.4", + "vimeo/psalm": "7.6.0" }, "suggest": { "ext-dom": "Install the DOM extension to load XML formatted public keys.", @@ -3262,7 +3302,7 @@ ], "support": { "issues": "https://github.com/phpseclib/phpseclib/issues", - "source": "https://github.com/phpseclib/phpseclib/tree/4.0.3" + "source": "https://github.com/phpseclib/phpseclib/tree/4.0.4" }, "funding": [ { @@ -3278,7 +3318,8 @@ "type": "tidelift" } ], - "time": "2026-11-02T10:46:03+00:00" + "time": "2026-11-20T07:41:04+00:00", + "published-time": "2026-11-20T07:46:17+00:00" }, { "name": "psr/clock", @@ -3326,7 +3367,8 @@ "issues": "https://github.com/php-fig/clock/issues", "source": "https://github.com/php-fig/clock/tree/1.0.0" }, - "time": "2022-11-25T14:36:26+00:00" + "time": "2022-11-25T14:36:26+00:00", + "published-time": "2022-11-25T14:59:22+00:00" }, { "name": "psr/container", @@ -3379,7 +3421,8 @@ "issues": "https://github.com/php-fig/container/issues", "source": "https://github.com/php-fig/container/tree/2.0.2" }, - "time": "2021-11-05T16:47:00+00:00" + "time": "2021-11-05T16:47:00+00:00", + "published-time": "2021-11-05T16:53:27+00:00" }, { "name": "psr/event-dispatcher", @@ -3429,7 +3472,8 @@ "issues": "https://github.com/php-fig/event-dispatcher/issues", "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" }, - "time": "2019-01-08T18:20:26+00:00" + "time": "2019-01-08T18:20:26+00:00", + "published-time": "2019-03-25T15:31:44+00:00" }, { "name": "psr/http-client", @@ -3481,7 +3525,8 @@ "support": { "source": "https://github.com/php-fig/http-client" }, - "time": "2023-09-23T14:17:50+00:00" + "time": "2023-09-23T14:17:50+00:00", + "published-time": "2023-09-23T14:18:12+00:00" }, { "name": "psr/http-factory", @@ -3536,7 +3581,8 @@ "support": { "source": "https://github.com/php-fig/http-factory" }, - "time": "2024-04-15T12:06:14+00:00" + "time": "2024-04-15T12:06:14+00:00", + "published-time": "2024-05-10T07:32:19+00:00" }, { "name": "psr/http-message", @@ -3589,7 +3635,8 @@ "support": { "source": "https://github.com/php-fig/http-message/tree/2.0" }, - "time": "2023-04-04T09:54:51+00:00" + "time": "2023-04-04T09:54:51+00:00", + "published-time": "2023-04-04T09:55:35+00:00" }, { "name": "psr/log", @@ -3639,7 +3686,8 @@ "support": { "source": "https://github.com/php-fig/log/tree/3.0.2" }, - "time": "2024-09-11T13:17:53+00:00" + "time": "2024-09-11T13:17:53+00:00", + "published-time": "2024-09-11T13:21:14+00:00" }, { "name": "psr/simple-cache", @@ -3690,7 +3738,8 @@ "support": { "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" }, - "time": "2021-10-29T13:26:27+00:00" + "time": "2021-10-29T13:26:27+00:00", + "published-time": "2021-10-29T13:27:19+00:00" }, { "name": "psy/psysh", @@ -3769,7 +3818,8 @@ "issues": "https://github.com/bobthecow/psysh/issues", "source": "https://github.com/bobthecow/psysh/tree/v0.12.24" }, - "time": "2026-06-29T15:41:09+00:00" + "time": "2026-06-29T15:41:09+00:00", + "published-time": "2026-06-29T15:41:53+00:00" }, { "name": "ralouphie/getallheaders", @@ -3813,7 +3863,8 @@ "issues": "https://github.com/ralouphie/getallheaders/issues", "source": "https://github.com/ralouphie/getallheaders/tree/develop" }, - "time": "2019-03-08T08:55:37+00:00" + "time": "2019-03-08T08:55:37+00:00", + "published-time": "2019-03-08T09:01:32+00:00" }, { "name": "ramsey/collection", @@ -3889,20 +3940,21 @@ "issues": "https://github.com/ramsey/collection/issues", "source": "https://github.com/ramsey/collection/tree/2.1.1" }, - "time": "2025-03-22T05:38:12+00:00" + "time": "2025-03-22T05:38:12+00:00", + "published-time": "2025-03-22T05:39:22+00:00" }, { "name": "ramsey/uuid", - "version": "4.9.4", + "version": "4.10.0", "source": { "type": "git", "url": "https://github.com/ramsey/uuid.git", - "reference": "75d73f48d02797c2c285a7e9f348fadc0102ffe2" + "reference": "f9aa3efc8015fcbc013d84d699583b268ccb593a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/uuid/zipball/75d73f48d02797c2c285a7e9f348fadc0102ffe2", - "reference": "75d73f48d02797c2c285a7e9f348fadc0102ffe2", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/f9aa3efc8015fcbc013d84d699583b268ccb593a", + "reference": "f9aa3efc8015fcbc013d84d699583b268ccb593a", "shasum": "" }, "require": { @@ -3914,23 +3966,22 @@ "rhumsaa/uuid": "self.version" }, "require-dev": { - "captainhook/captainhook": "^5.25", - "captainhook/plugin-composer": "^5.3", - "dealerdirect/phpcodesniffer-composer-installer": "^1.0", - "ergebnis/composer-normalize": "^2.47", - "mockery/mockery": "^1.6", - "paragonie/random-lib": "^2", - "php-mock/php-mock": "^2.6", - "php-mock/php-mock-mockery": "^1.5", + "captainhook/captainhook": "^5.29.3", + "captainhook/plugin-composer": "^5.3.3", + "dealerdirect/phpcodesniffer-composer-installer": "^1.2.1", + "mockery/mockery": "^1.6.15", + "paragonie/random-lib": "^2.0.3", + "php-mock/php-mock": "^2.7.0", + "php-mock/php-mock-mockery": "^1.5.0", "php-parallel-lint/php-parallel-lint": "^1.4.0", "phpbench/phpbench": "^1.2.14", - "phpstan/extension-installer": "^1.4", - "phpstan/phpstan": "^2.1", - "phpstan/phpstan-mockery": "^2.0", - "phpstan/phpstan-phpunit": "^2.0", - "phpunit/phpunit": "^9.6", - "slevomat/coding-standard": "^8.18", - "squizlabs/php_codesniffer": "^3.13" + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.3.5", + "phpstan/phpstan-mockery": "^2.0.0", + "phpstan/phpstan-phpunit": "^2.1.2", + "phpunit/phpunit": "^9.6.39", + "slevomat/coding-standard": "^8.31.3", + "squizlabs/php_codesniffer": "^4.0.4" }, "suggest": { "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", @@ -3965,22 +4016,23 @@ ], "support": { "issues": "https://github.com/ramsey/uuid/issues", - "source": "https://github.com/ramsey/uuid/tree/4.9.4" + "source": "https://github.com/ramsey/uuid/tree/4.10.0" }, - "time": "2026-09-16T11:39:30+00:00" + "time": "2026-11-14T23:23:20+00:00", + "published-time": "2026-11-14T23:35:39+00:00" }, { "name": "sentry/sentry", - "version": "4.36.0", + "version": "4.38.0", "source": { "type": "git", "url": "https://github.com/getsentry/sentry-php.git", - "reference": "7df5eefacff197c0aae0925a4848e3f91719d37c" + "reference": "9e5f09ccb8f741dde2717f48b1c6df820f95b7c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/7df5eefacff197c0aae0925a4848e3f91719d37c", - "reference": "7df5eefacff197c0aae0925a4848e3f91719d37c", + "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/9e5f09ccb8f741dde2717f48b1c6df820f95b7c5", + "reference": "9e5f09ccb8f741dde2717f48b1c6df820f95b7c5", "shasum": "" }, "require": { @@ -3997,7 +4049,7 @@ "raven/raven": "*" }, "require-dev": { - "carthage-software/mago": "1.30.0", + "carthage-software/mago": "1.60.2", "friendsofphp/php-cs-fixer": "^3.4", "guzzlehttp/guzzle": "^7.0|^8.0", "guzzlehttp/promises": "^2.0.3|^3.0.0", @@ -4052,7 +4104,7 @@ ], "support": { "issues": "https://github.com/getsentry/sentry-php/issues", - "source": "https://github.com/getsentry/sentry-php/tree/4.36.0" + "source": "https://github.com/getsentry/sentry-php/tree/4.38.0" }, "funding": [ { @@ -4064,27 +4116,28 @@ "type": "custom" } ], - "time": "2026-11-05T16:26:18+00:00" + "time": "2026-11-19T10:49:48+00:00", + "published-time": "2026-11-19T11:52:05+00:00" }, { "name": "sentry/sentry-laravel", - "version": "4.29.0", + "version": "4.31.0", "source": { "type": "git", "url": "https://github.com/getsentry/sentry-laravel.git", - "reference": "4b3deab3d8818490220e1da8e2d7cca971f74410" + "reference": "f40666aad6261a7cbc94bca061b3514ba09eeaa1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/getsentry/sentry-laravel/zipball/4b3deab3d8818490220e1da8e2d7cca971f74410", - "reference": "4b3deab3d8818490220e1da8e2d7cca971f74410", + "url": "https://api.github.com/repos/getsentry/sentry-laravel/zipball/f40666aad6261a7cbc94bca061b3514ba09eeaa1", + "reference": "f40666aad6261a7cbc94bca061b3514ba09eeaa1", "shasum": "" }, "require": { "illuminate/support": "^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0 | ^12.0 | ^13.0", "nyholm/psr7": "^1.0", "php": "^7.2 | ^8.0", - "sentry/sentry": "^4.34.0", + "sentry/sentry": "^4.38.0", "symfony/psr-http-message-bridge": "^1.0 | ^2.0 | ^6.0 | ^7.0 | ^8.0" }, "require-dev": { @@ -4144,7 +4197,7 @@ ], "support": { "issues": "https://github.com/getsentry/sentry-laravel/issues", - "source": "https://github.com/getsentry/sentry-laravel/tree/4.29.0" + "source": "https://github.com/getsentry/sentry-laravel/tree/4.31.0" }, "funding": [ { @@ -4156,7 +4209,8 @@ "type": "custom" } ], - "time": "2026-10-08T12:31:48+00:00" + "time": "2026-11-19T14:23:20+00:00", + "published-time": "2026-11-19T14:26:01+00:00" }, { "name": "symfony/clock", @@ -4233,20 +4287,21 @@ "type": "tidelift" } ], - "time": "2026-10-12T14:32:04+00:00" + "time": "2026-10-12T14:32:04+00:00", + "published-time": "2026-10-14T06:48:32+00:00" }, { "name": "symfony/console", - "version": "v7.4.23", + "version": "v7.4.24", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "81957c2440c05c962fe8291f318de6e85f8db330" + "reference": "542ec4ffb13541c31917ba720a2204f23c8e8d08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/81957c2440c05c962fe8291f318de6e85f8db330", - "reference": "81957c2440c05c962fe8291f318de6e85f8db330", + "url": "https://api.github.com/repos/symfony/console/zipball/542ec4ffb13541c31917ba720a2204f23c8e8d08", + "reference": "542ec4ffb13541c31917ba720a2204f23c8e8d08", "shasum": "" }, "require": { @@ -4311,7 +4366,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.4.23" + "source": "https://github.com/symfony/console/tree/v7.4.24" }, "funding": [ { @@ -4331,7 +4386,8 @@ "type": "tidelift" } ], - "time": "2026-11-03T21:47:07+00:00" + "time": "2026-11-24T15:38:27+00:00", + "published-time": "2026-11-25T09:25:19+00:00" }, { "name": "symfony/css-selector", @@ -4400,7 +4456,8 @@ "type": "tidelift" } ], - "time": "2026-10-18T14:56:39+00:00" + "time": "2026-10-18T14:56:39+00:00", + "published-time": "2026-10-28T18:24:46+00:00" }, { "name": "symfony/deprecation-contracts", @@ -4471,7 +4528,8 @@ "type": "tidelift" } ], - "time": "2026-09-16T14:15:10+00:00" + "time": "2026-09-16T14:15:10+00:00", + "published-time": "2026-11-04T11:25:34+00:00" }, { "name": "symfony/error-handler", @@ -4553,7 +4611,8 @@ "type": "tidelift" } ], - "time": "2026-10-25T14:40:16+00:00" + "time": "2026-10-25T14:40:16+00:00", + "published-time": "2026-10-28T18:20:15+00:00" }, { "name": "symfony/event-dispatcher", @@ -4639,7 +4698,8 @@ "type": "tidelift" } ], - "time": "2026-08-21T17:47:34+00:00" + "time": "2026-08-21T17:47:34+00:00", + "published-time": "2026-08-22T13:46:58+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -4719,20 +4779,21 @@ "type": "tidelift" } ], - "time": "2026-09-16T14:15:10+00:00" + "time": "2026-09-16T14:15:10+00:00", + "published-time": "2026-11-04T11:25:36+00:00" }, { "name": "symfony/finder", - "version": "v7.4.23", + "version": "v7.4.24", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "c723f990aefe8c1053b18374faf4231eba84f518" + "reference": "d1a9510360de57f80a9f88e63364f6c547cab352" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/c723f990aefe8c1053b18374faf4231eba84f518", - "reference": "c723f990aefe8c1053b18374faf4231eba84f518", + "url": "https://api.github.com/repos/symfony/finder/zipball/d1a9510360de57f80a9f88e63364f6c547cab352", + "reference": "d1a9510360de57f80a9f88e63364f6c547cab352", "shasum": "" }, "require": { @@ -4767,7 +4828,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.4.23" + "source": "https://github.com/symfony/finder/tree/v7.4.24" }, "funding": [ { @@ -4787,20 +4848,21 @@ "type": "tidelift" } ], - "time": "2026-11-02T10:56:49+00:00" + "time": "2026-11-24T15:02:12+00:00", + "published-time": "2026-11-25T09:23:55+00:00" }, { "name": "symfony/http-foundation", - "version": "v7.4.23", + "version": "v7.4.24", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "7fb73cffa06e2bcc2cb523fcccb1e8174106b206" + "reference": "3b6540d9640f5f717c0bac5192748925e81f4533" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/7fb73cffa06e2bcc2cb523fcccb1e8174106b206", - "reference": "7fb73cffa06e2bcc2cb523fcccb1e8174106b206", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/3b6540d9640f5f717c0bac5192748925e81f4533", + "reference": "3b6540d9640f5f717c0bac5192748925e81f4533", "shasum": "" }, "require": { @@ -4849,7 +4911,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v7.4.23" + "source": "https://github.com/symfony/http-foundation/tree/v7.4.24" }, "funding": [ { @@ -4869,20 +4931,21 @@ "type": "tidelift" } ], - "time": "2026-11-04T08:27:22+00:00" + "time": "2026-11-24T18:01:43+00:00", + "published-time": "2026-11-25T09:24:49+00:00" }, { "name": "symfony/http-kernel", - "version": "v7.4.23", + "version": "v7.4.24", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "94c57f4c5c45a311d244a0aeadb72b14ee41d25d" + "reference": "20d99a1a03c36fa1d16b47dd77dc148d2f9f8d82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/94c57f4c5c45a311d244a0aeadb72b14ee41d25d", - "reference": "94c57f4c5c45a311d244a0aeadb72b14ee41d25d", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/20d99a1a03c36fa1d16b47dd77dc148d2f9f8d82", + "reference": "20d99a1a03c36fa1d16b47dd77dc148d2f9f8d82", "shasum": "" }, "require": { @@ -4891,7 +4954,7 @@ "symfony/deprecation-contracts": "^2.5|^3", "symfony/error-handler": "^6.4|^7.0|^8.0", "symfony/event-dispatcher": "^7.3|^8.0", - "symfony/http-foundation": "^7.4|^8.0", + "symfony/http-foundation": "^7.4.24|^8.1.12", "symfony/polyfill-ctype": "^1.8" }, "conflict": { @@ -4968,7 +5031,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v7.4.23" + "source": "https://github.com/symfony/http-kernel/tree/v7.4.24" }, "funding": [ { @@ -4988,20 +5051,21 @@ "type": "tidelift" } ], - "time": "2026-11-04T11:26:18+00:00" + "time": "2026-11-25T09:22:14+00:00", + "published-time": "2026-11-25T09:24:44+00:00" }, { "name": "symfony/mailer", - "version": "v7.4.22", + "version": "v7.4.24", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "1aa1e2ee7515826bb17b0ad0d2f16962fcaa7859" + "reference": "19470de2526c9d5cdb136c5574e504024f523882" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/1aa1e2ee7515826bb17b0ad0d2f16962fcaa7859", - "reference": "1aa1e2ee7515826bb17b0ad0d2f16962fcaa7859", + "url": "https://api.github.com/repos/symfony/mailer/zipball/19470de2526c9d5cdb136c5574e504024f523882", + "reference": "19470de2526c9d5cdb136c5574e504024f523882", "shasum": "" }, "require": { @@ -5052,7 +5116,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v7.4.22" + "source": "https://github.com/symfony/mailer/tree/v7.4.24" }, "funding": [ { @@ -5072,20 +5136,21 @@ "type": "tidelift" } ], - "time": "2026-10-23T16:51:52+00:00" + "time": "2026-11-24T17:14:14+00:00", + "published-time": "2026-11-25T09:24:20+00:00" }, { "name": "symfony/mime", - "version": "v7.4.22", + "version": "v7.4.24", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "94a4c017435bc515f5ac80421a2c555fb9ca3676" + "reference": "de952f839520f9945b337eeab67e49c68b24ea6b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/94a4c017435bc515f5ac80421a2c555fb9ca3676", - "reference": "94a4c017435bc515f5ac80421a2c555fb9ca3676", + "url": "https://api.github.com/repos/symfony/mime/zipball/de952f839520f9945b337eeab67e49c68b24ea6b", + "reference": "de952f839520f9945b337eeab67e49c68b24ea6b", "shasum": "" }, "require": { @@ -5141,7 +5206,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v7.4.22" + "source": "https://github.com/symfony/mime/tree/v7.4.24" }, "funding": [ { @@ -5161,7 +5226,8 @@ "type": "tidelift" } ], - "time": "2026-10-28T17:57:58+00:00" + "time": "2026-11-24T16:26:23+00:00", + "published-time": "2026-11-25T09:24:00+00:00" }, { "name": "symfony/options-resolver", @@ -5232,7 +5298,8 @@ "type": "tidelift" } ], - "time": "2026-10-18T14:56:39+00:00" + "time": "2026-10-18T14:56:39+00:00", + "published-time": "2026-10-28T18:24:07+00:00" }, { "name": "symfony/polyfill-ctype", @@ -5315,7 +5382,8 @@ "type": "tidelift" } ], - "time": "2026-04-10T16:19:22+00:00" + "time": "2026-04-10T16:19:22+00:00", + "published-time": "2026-04-26T14:44:50+00:00" }, { "name": "symfony/polyfill-intl-grapheme", @@ -5397,7 +5465,8 @@ "type": "tidelift" } ], - "time": "2026-10-15T09:18:53+00:00" + "time": "2026-10-15T09:18:53+00:00", + "published-time": "2026-10-28T10:07:44+00:00" }, { "name": "symfony/polyfill-intl-idn", @@ -5484,7 +5553,8 @@ "type": "tidelift" } ], - "time": "2026-09-23T14:40:04+00:00" + "time": "2026-09-23T14:40:04+00:00", + "published-time": "2026-09-30T10:23:39+00:00" }, { "name": "symfony/polyfill-intl-normalizer", @@ -5569,7 +5639,8 @@ "type": "tidelift" } ], - "time": "2026-09-23T22:02:09+00:00" + "time": "2026-09-23T22:02:09+00:00", + "published-time": "2026-09-30T10:23:47+00:00" }, { "name": "symfony/polyfill-mbstring", @@ -5654,7 +5725,8 @@ "type": "tidelift" } ], - "time": "2026-10-28T09:35:49+00:00" + "time": "2026-10-28T09:35:49+00:00", + "published-time": "2026-10-28T10:07:45+00:00" }, { "name": "symfony/polyfill-php80", @@ -5738,7 +5810,8 @@ "type": "tidelift" } ], - "time": "2026-09-25T15:50:05+00:00" + "time": "2026-09-25T15:50:05+00:00", + "published-time": "2026-09-30T10:23:35+00:00" }, { "name": "symfony/polyfill-php82", @@ -5818,7 +5891,8 @@ "type": "tidelift" } ], - "time": "2026-09-25T15:50:05+00:00" + "time": "2026-09-25T15:50:05+00:00", + "published-time": "2026-09-30T10:23:32+00:00" }, { "name": "symfony/polyfill-php83", @@ -5898,7 +5972,8 @@ "type": "tidelift" } ], - "time": "2026-09-25T15:50:05+00:00" + "time": "2026-09-25T15:50:05+00:00", + "published-time": "2026-09-30T10:23:43+00:00" }, { "name": "symfony/polyfill-php84", @@ -5978,20 +6053,21 @@ "type": "tidelift" } ], - "time": "2026-09-23T22:01:09+00:00" + "time": "2026-09-23T22:01:09+00:00", + "published-time": "2026-09-30T10:23:33+00:00" }, { "name": "symfony/polyfill-php85", - "version": "v1.43.0", + "version": "v1.44.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php85.git", - "reference": "86a42cbcc07adc331481a5ab310a4024bfc227f6" + "reference": "94c794cb5ba51784bc259f11e9f128593297d8dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/86a42cbcc07adc331481a5ab310a4024bfc227f6", - "reference": "86a42cbcc07adc331481a5ab310a4024bfc227f6", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/94c794cb5ba51784bc259f11e9f128593297d8dc", + "reference": "94c794cb5ba51784bc259f11e9f128593297d8dc", "shasum": "" }, "require": { @@ -6038,7 +6114,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php85/tree/v1.43.0" + "source": "https://github.com/symfony/polyfill-php85/tree/v1.44.0" }, "funding": [ { @@ -6058,7 +6134,8 @@ "type": "tidelift" } ], - "time": "2026-09-25T15:46:47+00:00" + "time": "2026-10-30T15:20:09+00:00", + "published-time": "2026-11-15T14:20:22+00:00" }, { "name": "symfony/polyfill-time", @@ -6141,7 +6218,8 @@ "type": "tidelift" } ], - "time": "2026-08-07T13:08:13+00:00" + "time": "2026-08-07T13:08:13+00:00", + "published-time": "2026-08-24T11:45:15+00:00" }, { "name": "symfony/polyfill-uuid", @@ -6224,20 +6302,21 @@ "type": "tidelift" } ], - "time": "2026-09-24T05:20:52+00:00" + "time": "2026-09-24T05:20:52+00:00", + "published-time": "2026-09-30T10:23:49+00:00" }, { "name": "symfony/process", - "version": "v7.4.22", + "version": "v7.4.24", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "a5a6912edbbfc4c98cd080bc4bbe37c8e7eeb20a" + "reference": "e88ac51768062ad548bf2f900c52231e7e83e475" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/a5a6912edbbfc4c98cd080bc4bbe37c8e7eeb20a", - "reference": "a5a6912edbbfc4c98cd080bc4bbe37c8e7eeb20a", + "url": "https://api.github.com/repos/symfony/process/zipball/e88ac51768062ad548bf2f900c52231e7e83e475", + "reference": "e88ac51768062ad548bf2f900c52231e7e83e475", "shasum": "" }, "require": { @@ -6269,7 +6348,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.4.22" + "source": "https://github.com/symfony/process/tree/v7.4.24" }, "funding": [ { @@ -6289,20 +6368,21 @@ "type": "tidelift" } ], - "time": "2026-10-25T14:40:16+00:00" + "time": "2026-11-23T08:23:51+00:00", + "published-time": "2026-11-25T09:25:48+00:00" }, { "name": "symfony/psr-http-message-bridge", - "version": "v8.1.9", + "version": "v8.1.12", "source": { "type": "git", "url": "https://github.com/symfony/psr-http-message-bridge.git", - "reference": "cfa8f3ac693fec234a91d8745b45ed9a81a0b799" + "reference": "3d6c3785ee0aa498f6d912f1af7cf48fd978705b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/psr-http-message-bridge/zipball/cfa8f3ac693fec234a91d8745b45ed9a81a0b799", - "reference": "cfa8f3ac693fec234a91d8745b45ed9a81a0b799", + "url": "https://api.github.com/repos/symfony/psr-http-message-bridge/zipball/3d6c3785ee0aa498f6d912f1af7cf48fd978705b", + "reference": "3d6c3785ee0aa498f6d912f1af7cf48fd978705b", "shasum": "" }, "require": { @@ -6356,7 +6436,7 @@ "psr-7" ], "support": { - "source": "https://github.com/symfony/psr-http-message-bridge/tree/v8.1.9" + "source": "https://github.com/symfony/psr-http-message-bridge/tree/v8.1.12" }, "funding": [ { @@ -6376,20 +6456,21 @@ "type": "tidelift" } ], - "time": "2026-10-07T08:21:34+00:00" + "time": "2026-11-24T14:12:36+00:00", + "published-time": "2026-11-25T09:29:46+00:00" }, { "name": "symfony/routing", - "version": "v7.4.23", + "version": "v7.4.24", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "0000ade604b7bc798cb1e75edf6f17df48185f73" + "reference": "63fd985c6afe7ac69f89fb90a72715ca20cddc08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/0000ade604b7bc798cb1e75edf6f17df48185f73", - "reference": "0000ade604b7bc798cb1e75edf6f17df48185f73", + "url": "https://api.github.com/repos/symfony/routing/zipball/63fd985c6afe7ac69f89fb90a72715ca20cddc08", + "reference": "63fd985c6afe7ac69f89fb90a72715ca20cddc08", "shasum": "" }, "require": { @@ -6441,7 +6522,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v7.4.23" + "source": "https://github.com/symfony/routing/tree/v7.4.24" }, "funding": [ { @@ -6461,7 +6542,8 @@ "type": "tidelift" } ], - "time": "2026-11-04T08:27:22+00:00" + "time": "2026-11-24T18:01:43+00:00", + "published-time": "2026-11-25T09:25:58+00:00" }, { "name": "symfony/service-contracts", @@ -6548,20 +6630,21 @@ "type": "tidelift" } ], - "time": "2026-10-20T17:38:25+00:00" + "time": "2026-10-20T17:38:25+00:00", + "published-time": "2026-11-04T11:25:33+00:00" }, { "name": "symfony/string", - "version": "v8.1.10", + "version": "v8.1.12", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "6c6110979c0150393bbb336170e286d51ab4d76c" + "reference": "b3f937ce8203f33efea3cce084ad4a9f0cce97c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/6c6110979c0150393bbb336170e286d51ab4d76c", - "reference": "6c6110979c0150393bbb336170e286d51ab4d76c", + "url": "https://api.github.com/repos/symfony/string/zipball/b3f937ce8203f33efea3cce084ad4a9f0cce97c5", + "reference": "b3f937ce8203f33efea3cce084ad4a9f0cce97c5", "shasum": "" }, "require": { @@ -6618,7 +6701,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v8.1.10" + "source": "https://github.com/symfony/string/tree/v8.1.12" }, "funding": [ { @@ -6638,20 +6721,21 @@ "type": "tidelift" } ], - "time": "2026-10-23T17:06:53+00:00" + "time": "2026-11-24T15:59:55+00:00", + "published-time": "2026-11-25T09:30:00+00:00" }, { "name": "symfony/translation", - "version": "v8.1.11", + "version": "v8.1.12", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "d065adf56e5508293e80d7c140b0a9e043b63e9c" + "reference": "413000a518ef8c989696b7c9b0f75cb2c29779af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/d065adf56e5508293e80d7c140b0a9e043b63e9c", - "reference": "d065adf56e5508293e80d7c140b0a9e043b63e9c", + "url": "https://api.github.com/repos/symfony/translation/zipball/413000a518ef8c989696b7c9b0f75cb2c29779af", + "reference": "413000a518ef8c989696b7c9b0f75cb2c29779af", "shasum": "" }, "require": { @@ -6711,7 +6795,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v8.1.11" + "source": "https://github.com/symfony/translation/tree/v8.1.12" }, "funding": [ { @@ -6731,7 +6815,8 @@ "type": "tidelift" } ], - "time": "2026-11-01T22:27:46+00:00" + "time": "2026-11-24T16:43:41+00:00", + "published-time": "2026-11-25T09:29:38+00:00" }, { "name": "symfony/translation-contracts", @@ -6813,7 +6898,8 @@ "type": "tidelift" } ], - "time": "2026-10-03T08:17:19+00:00" + "time": "2026-10-03T08:17:19+00:00", + "published-time": "2026-11-04T11:25:31+00:00" }, { "name": "symfony/uid", @@ -6891,20 +6977,21 @@ "type": "tidelift" } ], - "time": "2026-10-12T14:31:36+00:00" + "time": "2026-10-12T14:31:36+00:00", + "published-time": "2026-10-14T06:45:54+00:00" }, { "name": "symfony/var-dumper", - "version": "v7.4.22", + "version": "v7.4.24", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "6e6ff33ea8cf5df27f00a5561ebd5ee9bd7f1618" + "reference": "04112d9b77043f1ffb2d70d78aaf09c067c80079" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/6e6ff33ea8cf5df27f00a5561ebd5ee9bd7f1618", - "reference": "6e6ff33ea8cf5df27f00a5561ebd5ee9bd7f1618", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/04112d9b77043f1ffb2d70d78aaf09c067c80079", + "reference": "04112d9b77043f1ffb2d70d78aaf09c067c80079", "shasum": "" }, "require": { @@ -6958,7 +7045,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v7.4.22" + "source": "https://github.com/symfony/var-dumper/tree/v7.4.24" }, "funding": [ { @@ -6978,7 +7065,8 @@ "type": "tidelift" } ], - "time": "2026-10-25T21:04:04+00:00" + "time": "2026-11-12T10:19:45+00:00", + "published-time": "2026-11-25T09:25:05+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -7033,7 +7121,8 @@ "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.4.0" }, - "time": "2025-12-02T11:56:42+00:00" + "time": "2025-12-02T11:56:42+00:00", + "published-time": "2025-12-11T21:29:16+00:00" }, { "name": "tymon/jwt-auth", @@ -7111,20 +7200,21 @@ "issues": "https://github.com/tymondesigns/jwt-auth/issues", "source": "https://github.com/tymondesigns/jwt-auth" }, - "time": "2026-10-24T15:03:54+00:00" + "time": "2026-10-24T15:03:54+00:00", + "published-time": "2026-10-24T15:15:41+00:00" }, { "name": "vlucas/phpdotenv", - "version": "v5.8.0", + "version": "v5.8.1", "source": { "type": "git", "url": "https://github.com/phpdotenv/phpdotenv.git", - "reference": "96149103e62ac67e915f6d2ef59b72dee2e011e0" + "reference": "ba37876e98122ca15151247ce1187d20ee8bf4e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpdotenv/phpdotenv/zipball/96149103e62ac67e915f6d2ef59b72dee2e011e0", - "reference": "96149103e62ac67e915f6d2ef59b72dee2e011e0", + "url": "https://api.github.com/repos/phpdotenv/phpdotenv/zipball/ba37876e98122ca15151247ce1187d20ee8bf4e0", + "reference": "ba37876e98122ca15151247ce1187d20ee8bf4e0", "shasum": "" }, "require": { @@ -7183,7 +7273,7 @@ ], "support": { "issues": "https://github.com/phpdotenv/phpdotenv/issues", - "source": "https://github.com/phpdotenv/phpdotenv/tree/v5.8.0" + "source": "https://github.com/phpdotenv/phpdotenv/tree/v5.8.1" }, "funding": [ { @@ -7195,7 +7285,8 @@ "type": "tidelift" } ], - "time": "2026-10-25T16:26:19+00:00" + "time": "2026-11-23T00:53:11+00:00", + "published-time": "2026-11-23T00:53:39+00:00" }, { "name": "voku/portable-ascii", @@ -7269,7 +7360,8 @@ "type": "tidelift" } ], - "time": "2026-04-26T05:33:54+00:00" + "time": "2026-04-26T05:33:54+00:00", + "published-time": "2026-04-26T05:43:38+00:00" } ], "packages-dev": [ @@ -7364,7 +7456,8 @@ "type": "paypal" } ], - "time": "2026-10-04T06:17:44+00:00" + "time": "2026-10-04T06:17:44+00:00", + "published-time": "2026-10-04T06:18:50+00:00" }, { "name": "fakerphp/faker", @@ -7427,7 +7520,8 @@ "issues": "https://github.com/FakerPHP/Faker/issues", "source": "https://github.com/FakerPHP/Faker/tree/v1.24.1" }, - "time": "2024-11-21T13:46:39+00:00" + "time": "2024-11-21T13:46:39+00:00", + "published-time": "2024-11-21T13:47:18+00:00" }, { "name": "fidry/cpu-core-counter", @@ -7489,20 +7583,21 @@ "type": "github" } ], - "time": "2026-09-29T22:11:39+00:00" + "time": "2026-09-29T22:11:39+00:00", + "published-time": "2026-09-29T22:12:43+00:00" }, { "name": "filp/whoops", - "version": "2.19.2", + "version": "2.19.3", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "84e33631273138ac103d045dc02b0fb7e5485582" + "reference": "d5480d53f10069dc4620a39f87e38e8945d47322" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/84e33631273138ac103d045dc02b0fb7e5485582", - "reference": "84e33631273138ac103d045dc02b0fb7e5485582", + "url": "https://api.github.com/repos/filp/whoops/zipball/d5480d53f10069dc4620a39f87e38e8945d47322", + "reference": "d5480d53f10069dc4620a39f87e38e8945d47322", "shasum": "" }, "require": { @@ -7552,7 +7647,7 @@ ], "support": { "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.19.2" + "source": "https://github.com/filp/whoops/tree/2.19.3" }, "funding": [ { @@ -7560,7 +7655,8 @@ "type": "github" } ], - "time": "2026-11-03T23:38:01+00:00" + "time": "2026-11-09T23:30:17+00:00", + "published-time": "2026-11-09T23:32:45+00:00" }, { "name": "hamcrest/hamcrest-php", @@ -7615,7 +7711,8 @@ "issues": "https://github.com/hamcrest/hamcrest-php/issues", "source": "https://github.com/hamcrest/hamcrest-php/tree/v3.0.0" }, - "time": "2026-03-17T11:56:53+00:00" + "time": "2026-03-17T11:56:53+00:00", + "published-time": "2026-06-16T10:52:40+00:00" }, { "name": "laravel/breeze", @@ -7676,20 +7773,21 @@ "issues": "https://github.com/laravel/breeze/issues", "source": "https://github.com/laravel/breeze" }, - "time": "2026-05-14T16:54:25+00:00" + "time": "2026-05-14T16:54:25+00:00", + "published-time": "2026-05-19T18:41:25+00:00" }, { "name": "laravel/pint", - "version": "v1.32.1", + "version": "v1.32.3", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "006bd7825eb01daf92959d060b89cd9514fe4253" + "reference": "1cf8e0320bed4b3c6e51df92039a5636c3887728" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/006bd7825eb01daf92959d060b89cd9514fe4253", - "reference": "006bd7825eb01daf92959d060b89cd9514fe4253", + "url": "https://api.github.com/repos/laravel/pint/zipball/1cf8e0320bed4b3c6e51df92039a5636c3887728", + "reference": "1cf8e0320bed4b3c6e51df92039a5636c3887728", "shasum": "" }, "require": { @@ -7700,15 +7798,15 @@ "php": "^8.3.0" }, "require-dev": { - "composer/semver": "^3.4.4", - "friendsofphp/php-cs-fixer": "^3.95.25", - "illuminate/view": "^13.31.0", - "larastan/larastan": "^3.11.0", + "composer/semver": "^3.6.0", + "friendsofphp/php-cs-fixer": "^3.95.30", + "illuminate/view": "^13.42.0", + "larastan/larastan": "^3.15.0", "laravel-zero/framework": "^13.0.0", - "laravel/agent-detector": "^2.0.2", - "laravel/prompts": "^0.3.24", + "laravel/agent-detector": "^2.0.5", + "laravel/prompts": "^0.3.27", "mockery/mockery": "^1.6.15", - "nunomaduro/termwind": "^2.4.0", + "nunomaduro/termwind": "^2.4.1", "pestphp/pest": "^4.7.8" }, "bin": [ @@ -7746,32 +7844,33 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2026-09-10T10:47:55+00:00" + "time": "2026-11-11T16:45:13+00:00", + "published-time": "2026-11-11T16:45:39+00:00" }, { "name": "laravel/sail", - "version": "v1.69.0", + "version": "v1.71.0", "source": { "type": "git", "url": "https://github.com/laravel/sail.git", - "reference": "3587ac9d68e8f2eaf36bd9fb003a4555861dca9d" + "reference": "6b56b4f316d1e8048fac6840819b49eaef00cda1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/sail/zipball/3587ac9d68e8f2eaf36bd9fb003a4555861dca9d", - "reference": "3587ac9d68e8f2eaf36bd9fb003a4555861dca9d", + "url": "https://api.github.com/repos/laravel/sail/zipball/6b56b4f316d1e8048fac6840819b49eaef00cda1", + "reference": "6b56b4f316d1e8048fac6840819b49eaef00cda1", "shasum": "" }, "require": { - "illuminate/console": "^9.52.16|^10.0|^11.0|^12.0|^13.0", - "illuminate/contracts": "^9.52.16|^10.0|^11.0|^12.0|^13.0", - "illuminate/support": "^9.52.16|^10.0|^11.0|^12.0|^13.0", - "php": "^8.0", - "symfony/console": "^6.0|^7.0|^8.0", - "symfony/yaml": "^6.0|^7.0|^8.0" + "illuminate/console": "^12.0|^13.0", + "illuminate/contracts": "^12.0|^13.0", + "illuminate/support": "^12.0|^13.0", + "php": "^8.2", + "symfony/console": "^7.0|^8.0", + "symfony/yaml": "^7.0|^8.0" }, "require-dev": { - "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0|^11.0", + "orchestra/testbench": "^10.0|^11.0", "phpstan/phpstan": "^2.0" }, "bin": [ @@ -7809,7 +7908,8 @@ "issues": "https://github.com/laravel/sail/issues", "source": "https://github.com/laravel/sail" }, - "time": "2026-10-08T20:06:52+00:00" + "time": "2026-11-11T14:19:59+00:00", + "published-time": "2026-11-17T15:19:48+00:00" }, { "name": "lucascudo/laravel-pt-br-localization", @@ -7868,7 +7968,8 @@ "type": "tidelift" } ], - "time": "2025-03-06T11:03:14+00:00" + "time": "2025-03-06T11:03:14+00:00", + "published-time": "2025-03-10T11:13:13+00:00" }, { "name": "mockery/mockery", @@ -7950,7 +8051,8 @@ "security": "https://github.com/mockery/mockery/security/advisories", "source": "https://github.com/mockery/mockery" }, - "time": "2026-08-19T19:37:52+00:00" + "time": "2026-08-19T19:37:52+00:00", + "published-time": "2026-08-19T19:38:57+00:00" }, { "name": "myclabs/deep-copy", @@ -8010,40 +8112,41 @@ "type": "github" } ], - "time": "2026-08-11T10:17:44+00:00" + "time": "2026-08-11T10:17:44+00:00", + "published-time": "2026-08-11T10:29:20+00:00" }, { "name": "nunomaduro/collision", - "version": "v8.9.5", + "version": "v8.9.6", "source": { "type": "git", "url": "https://github.com/nunomaduro/collision.git", - "reference": "fb53eacd509a1d303858e2d20cfebf2d630254ec" + "reference": "68806f9257968f23775bee62970cb90925b79d51" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/fb53eacd509a1d303858e2d20cfebf2d630254ec", - "reference": "fb53eacd509a1d303858e2d20cfebf2d630254ec", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/68806f9257968f23775bee62970cb90925b79d51", + "reference": "68806f9257968f23775bee62970cb90925b79d51", "shasum": "" }, "require": { - "filp/whoops": "^2.18.4", - "nunomaduro/termwind": "^2.4.0", + "filp/whoops": "^2.19.3", + "nunomaduro/termwind": "^2.4.1", "php": "^8.2.0", - "symfony/console": "^7.4.14 || ^8.1.1" + "symfony/console": "^7.4.23 || ^8.1.11" }, "conflict": { "laravel/framework": "<11.48.0 || >=14.0.0", "phpunit/phpunit": "<11.5.50 || >=14.0.0" }, "require-dev": { - "brianium/paratest": "^7.8.5", - "larastan/larastan": "^3.10.0", - "laravel/framework": "^11.48.0 || ^12.56.0 || ^13.20.0", - "laravel/pint": "^1.29.3", - "orchestra/testbench-core": "^9.12.0 || ^10.12.1 || ^11.3.5", - "pestphp/pest": "^3.8.5 || ^4.7.5 || ^5.0.0", - "sebastian/environment": "^7.2.1 || ^8.1.2 || ^9.3.2" + "brianium/paratest": "^7.8.6", + "larastan/larastan": "^3.14.0", + "laravel/framework": "^11.57.1 || ^12.72.0 || ^13.40.0", + "laravel/pint": "^1.30.4", + "orchestra/testbench-core": "^9.24.0 || ^10.16.0 || ^11.6.0", + "pestphp/pest": "^3.8.7 || ^4.7.8 || ^5.3.5", + "sebastian/environment": "^7.2.1 || ^8.1.2 || ^9.3.3" }, "type": "library", "extra": { @@ -8106,7 +8209,8 @@ "type": "patreon" } ], - "time": "2026-07-15T19:09:14+00:00" + "time": "2026-11-10T17:06:52+00:00", + "published-time": "2026-11-10T17:23:22+00:00" }, { "name": "phar-io/manifest", @@ -8173,7 +8277,8 @@ "type": "github" } ], - "time": "2024-03-03T12:33:53+00:00" + "time": "2024-03-03T12:33:53+00:00", + "published-time": "2024-03-03T12:39:44+00:00" }, { "name": "phar-io/version", @@ -8224,7 +8329,8 @@ "issues": "https://github.com/phar-io/version/issues", "source": "https://github.com/phar-io/version/tree/3.2.1" }, - "time": "2022-02-21T01:04:05+00:00" + "time": "2022-02-21T01:04:05+00:00", + "published-time": "2022-02-21T01:04:30+00:00" }, { "name": "phpunit/php-code-coverage", @@ -8314,7 +8420,8 @@ "type": "tidelift" } ], - "time": "2025-12-24T07:01:01+00:00" + "time": "2025-12-24T07:01:01+00:00", + "published-time": "2025-12-24T07:02:33+00:00" }, { "name": "phpunit/php-file-iterator", @@ -8387,7 +8494,8 @@ "type": "tidelift" } ], - "time": "2026-02-02T13:52:54+00:00" + "time": "2026-02-02T13:52:54+00:00", + "published-time": "2026-02-02T13:54:13+00:00" }, { "name": "phpunit/php-invoker", @@ -8451,7 +8559,8 @@ "type": "github" } ], - "time": "2024-07-03T05:07:44+00:00" + "time": "2024-07-03T05:07:44+00:00", + "published-time": "2024-07-03T05:07:59+00:00" }, { "name": "phpunit/php-text-template", @@ -8511,7 +8620,8 @@ "type": "github" } ], - "time": "2024-07-03T05:08:43+00:00" + "time": "2024-07-03T05:08:43+00:00", + "published-time": "2024-07-03T05:08:52+00:00" }, { "name": "phpunit/php-timer", @@ -8571,20 +8681,21 @@ "type": "github" } ], - "time": "2024-07-03T05:09:35+00:00" + "time": "2024-07-03T05:09:35+00:00", + "published-time": "2024-07-03T05:09:48+00:00" }, { "name": "phpunit/phpunit", - "version": "11.5.57", + "version": "11.5.58", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "36b75bf56a8535623f5b3e24b27ea1823759da1a" + "reference": "c14b3145a2fcfa5dd9b25ee999ce2ba5933adf6f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/36b75bf56a8535623f5b3e24b27ea1823759da1a", - "reference": "36b75bf56a8535623f5b3e24b27ea1823759da1a", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c14b3145a2fcfa5dd9b25ee999ce2ba5933adf6f", + "reference": "c14b3145a2fcfa5dd9b25ee999ce2ba5933adf6f", "shasum": "" }, "require": { @@ -8657,7 +8768,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.57" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.58" }, "funding": [ { @@ -8665,7 +8776,8 @@ "type": "other" } ], - "time": "2026-10-05T05:47:54+00:00" + "time": "2026-11-13T11:08:08+00:00", + "published-time": "2026-11-13T11:09:01+00:00" }, { "name": "sebastian/cli-parser", @@ -8722,7 +8834,8 @@ "type": "github" } ], - "time": "2024-07-03T04:41:36+00:00" + "time": "2024-07-03T04:41:36+00:00", + "published-time": "2024-07-03T04:42:56+00:00" }, { "name": "sebastian/code-unit", @@ -8779,7 +8892,8 @@ "type": "github" } ], - "time": "2025-03-19T07:56:08+00:00" + "time": "2025-03-19T07:56:08+00:00", + "published-time": "2025-03-19T07:56:37+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -8835,7 +8949,8 @@ "type": "github" } ], - "time": "2024-07-03T04:45:54+00:00" + "time": "2024-07-03T04:45:54+00:00", + "published-time": "2024-07-03T04:46:11+00:00" }, { "name": "sebastian/comparator", @@ -8927,7 +9042,8 @@ "type": "tidelift" } ], - "time": "2026-01-24T09:26:40+00:00" + "time": "2026-01-24T09:26:40+00:00", + "published-time": "2026-01-24T09:27:07+00:00" }, { "name": "sebastian/complexity", @@ -8985,7 +9101,8 @@ "type": "github" } ], - "time": "2024-07-03T04:49:50+00:00" + "time": "2024-07-03T04:49:50+00:00", + "published-time": "2024-07-03T04:50:20+00:00" }, { "name": "sebastian/diff", @@ -9052,7 +9169,8 @@ "type": "github" } ], - "time": "2024-07-03T04:53:05+00:00" + "time": "2024-07-03T04:53:05+00:00", + "published-time": "2024-07-03T04:53:18+00:00" }, { "name": "sebastian/environment", @@ -9128,7 +9246,8 @@ "type": "tidelift" } ], - "time": "2025-05-21T11:55:47+00:00" + "time": "2025-05-21T11:55:47+00:00", + "published-time": "2025-05-21T11:56:27+00:00" }, { "name": "sebastian/exporter", @@ -9218,7 +9337,8 @@ "type": "tidelift" } ], - "time": "2025-09-24T06:12:51+00:00" + "time": "2025-09-24T06:12:51+00:00", + "published-time": "2025-09-24T06:14:38+00:00" }, { "name": "sebastian/global-state", @@ -9280,7 +9400,8 @@ "type": "github" } ], - "time": "2024-07-03T04:57:36+00:00" + "time": "2024-07-03T04:57:36+00:00", + "published-time": "2024-07-03T04:57:52+00:00" }, { "name": "sebastian/lines-of-code", @@ -9338,7 +9459,8 @@ "type": "github" } ], - "time": "2024-07-03T04:58:38+00:00" + "time": "2024-07-03T04:58:38+00:00", + "published-time": "2024-07-03T04:58:50+00:00" }, { "name": "sebastian/object-enumerator", @@ -9396,7 +9518,8 @@ "type": "github" } ], - "time": "2024-07-03T05:00:13+00:00" + "time": "2024-07-03T05:00:13+00:00", + "published-time": "2024-07-03T05:00:34+00:00" }, { "name": "sebastian/object-reflector", @@ -9452,7 +9575,8 @@ "type": "github" } ], - "time": "2024-07-03T05:01:32+00:00" + "time": "2024-07-03T05:01:32+00:00", + "published-time": "2024-07-03T05:01:45+00:00" }, { "name": "sebastian/recursion-context", @@ -9528,7 +9652,8 @@ "type": "tidelift" } ], - "time": "2025-08-13T04:42:22+00:00" + "time": "2025-08-13T04:42:22+00:00", + "published-time": "2025-08-13T04:42:55+00:00" }, { "name": "sebastian/type", @@ -9597,7 +9722,8 @@ "type": "tidelift" } ], - "time": "2025-08-09T06:55:48+00:00" + "time": "2025-08-09T06:55:48+00:00", + "published-time": "2025-08-09T07:00:14+00:00" }, { "name": "sebastian/version", @@ -9651,7 +9777,8 @@ "type": "github" } ], - "time": "2024-10-09T05:16:32+00:00" + "time": "2024-10-09T05:16:32+00:00", + "published-time": "2024-10-09T05:17:00+00:00" }, { "name": "spatie/backtrace", @@ -9715,7 +9842,8 @@ "type": "other" } ], - "time": "2026-03-11T13:48:28+00:00" + "time": "2026-03-11T13:48:28+00:00", + "published-time": "2026-03-11T13:53:28+00:00" }, { "name": "spatie/error-solutions", @@ -9789,7 +9917,8 @@ "type": "github" } ], - "time": "2025-02-14T12:29:50+00:00" + "time": "2025-02-14T12:29:50+00:00", + "published-time": "2025-02-14T12:31:33+00:00" }, { "name": "spatie/flare-client-php", @@ -9858,7 +9987,8 @@ "type": "github" } ], - "time": "2026-11-04T15:14:45+00:00" + "time": "2026-11-04T15:14:45+00:00", + "published-time": "2026-11-04T15:19:07+00:00" }, { "name": "spatie/ignition", @@ -9944,7 +10074,8 @@ "type": "github" } ], - "time": "2026-03-17T10:51:08+00:00" + "time": "2026-03-17T10:51:08+00:00", + "published-time": "2026-03-17T11:53:53+00:00" }, { "name": "spatie/laravel-ignition", @@ -10036,7 +10167,8 @@ "type": "github" } ], - "time": "2026-10-19T16:31:25+00:00" + "time": "2026-10-19T16:31:25+00:00", + "published-time": "2026-10-19T16:31:42+00:00" }, { "name": "staabm/side-effects-detector", @@ -10088,20 +10220,21 @@ "type": "github" } ], - "time": "2024-10-20T05:08:20+00:00" + "time": "2024-10-20T05:08:20+00:00", + "published-time": "2024-10-20T05:09:39+00:00" }, { "name": "symfony/yaml", - "version": "v8.1.11", + "version": "v8.1.12", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "e8266f55160f674f290a5f567cb55e11e21f921b" + "reference": "deb300ddc3ef3eab0476569fd88d14e3b194881a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/e8266f55160f674f290a5f567cb55e11e21f921b", - "reference": "e8266f55160f674f290a5f567cb55e11e21f921b", + "url": "https://api.github.com/repos/symfony/yaml/zipball/deb300ddc3ef3eab0476569fd88d14e3b194881a", + "reference": "deb300ddc3ef3eab0476569fd88d14e3b194881a", "shasum": "" }, "require": { @@ -10144,7 +10277,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v8.1.11" + "source": "https://github.com/symfony/yaml/tree/v8.1.12" }, "funding": [ { @@ -10164,7 +10297,8 @@ "type": "tidelift" } ], - "time": "2026-11-04T08:39:20+00:00" + "time": "2026-11-16T12:51:10+00:00", + "published-time": "2026-11-25T09:28:53+00:00" }, { "name": "theseer/tokenizer", @@ -10214,7 +10348,8 @@ "type": "github" } ], - "time": "2025-11-17T20:03:58+00:00" + "time": "2025-11-17T20:03:58+00:00", + "published-time": "2025-11-17T20:04:52+00:00" } ], "aliases": [], @@ -10229,5 +10364,5 @@ "platform-dev": { "ext-pcntl": "*" }, - "plugin-api-version": "2.9.0" + "plugin-api-version": "2.11.0" } diff --git a/config/rabbitmq.php b/config/rabbitmq.php index f1c78c3..f032a0f 100644 --- a/config/rabbitmq.php +++ b/config/rabbitmq.php @@ -16,6 +16,7 @@ 'queue_import_registration' => env('QUEUE_IMPORT_REGISTRATION', 'queue_import_registration'), 'queue_published_recourses' => env('QUEUE_PUBLISHED_RECOURSES', 'queue_published_recourses'), 'queue_accountability' => env('QUEUE_ACCOUNTABILITY', 'queue_accountability'), + 'queue_mail_notification' => env('QUEUE_MAIL_NOTIFICATION', 'queue_mail_notification'), ], 'routing' => [ @@ -23,6 +24,7 @@ 'module_accountability_proponent' => env('MODULE_ACCOUNTABILITY_PROPONENT', 'module_accountability_proponent'), 'module_accountability_adm' => env('MODULE_ACCOUNTABILITY_ADM', 'module_accountability_adm'), 'plugin_published_recourses' => env('PLUGIN_PUBLISHED_RECOURSES', 'plugin_published_recourses'), + 'module_mail_notification' => env('MODULE_MAIL_NOTIFICATION', 'module_mail_notification'), ], 'prefetch_count' => (int) env('RABBITMQ_PREFETCH_COUNT', 1), diff --git a/database/migrations/2026_11_27_120000_add_unique_message_id_to_mail_notification_dispatches.php b/database/migrations/2026_11_27_120000_add_unique_message_id_to_mail_notification_dispatches.php new file mode 100644 index 0000000..7915406 --- /dev/null +++ b/database/migrations/2026_11_27_120000_add_unique_message_id_to_mail_notification_dispatches.php @@ -0,0 +1,27 @@ +>'message_id')) + WHERE mailable_type = 'App\Mail\MailNotification' + SQL); + } + + public function down(): void + { + DB::statement('DROP INDEX IF EXISTS uq_email_dispatches_mail_notification_message_id'); + } +}; diff --git a/docker/php-fpm/supervisord.conf b/docker/php-fpm/supervisord.conf index c565775..660df94 100644 --- a/docker/php-fpm/supervisord.conf +++ b/docker/php-fpm/supervisord.conf @@ -45,3 +45,10 @@ autorestart=true stderr_logfile=/var/log/supervisor/opinion_management_err.log stdout_logfile=/var/log/supervisor/opinion_management_out.log + +[program:mail_notification] +command=php artisan rabbitmq:mail-notification +autostart=true +autorestart=true +stderr_logfile=/var/log/supervisor/mail_notification_err.log +stdout_logfile=/var/log/supervisor/mail_notification_out.log diff --git a/docker/production/supervisor/conf.d/mail_notification.conf b/docker/production/supervisor/conf.d/mail_notification.conf new file mode 100644 index 0000000..290ff49 --- /dev/null +++ b/docker/production/supervisor/conf.d/mail_notification.conf @@ -0,0 +1,8 @@ +[program:mail_notification] +process_name=%(program_name)s_%(process_num)02d +command=php artisan rabbitmq:mail-notification +autostart=true +autorestart=true +numprocs=1 +redirect_stderr=true +stdout_logfile=/var/log/supervisor/mail_notification.log diff --git a/tests/Feature/MailNotificationCommandTest.php b/tests/Feature/MailNotificationCommandTest.php new file mode 100644 index 0000000..ac1bfae --- /dev/null +++ b/tests/Feature/MailNotificationCommandTest.php @@ -0,0 +1,101 @@ + 'sendmailnotification:200abc', + 'registration_id' => 200, + 'to' => 'agente@example.com', + 'subject' => 'Inscrição enviada', + 'body' => '

Olá

', + ]); + } + + public function test_sucesso_recebe_ack(): void + { + $processor = Mockery::mock(MailNotificationProcessor::class); + $processor->shouldReceive('process')->once()->with(Mockery::on( + fn (array $data) => $data['message_id'] === 'sendmailnotification:200abc' + )); + + $this->commandUnderTest($processor)->accept($this->message($this->body(), true)); + } + + public function test_json_invalido_vai_para_dlq_sem_chamar_o_processor(): void + { + $processor = Mockery::mock(MailNotificationProcessor::class); + $processor->shouldNotReceive('process'); + + $this->commandUnderTest($processor)->accept($this->message('nao e json', false)); + $this->commandUnderTest($processor)->accept($this->message('"texto"', false)); + } + + public function test_dados_invalidos_vao_para_dlq(): void + { + $processor = Mockery::mock(MailNotificationProcessor::class); + $processor->shouldReceive('process')->once() + ->andThrow(new InvalidRegistrationMessageException('to inválido')); + + $this->commandUnderTest($processor)->accept($this->message($this->body(), false)); + } + + public function test_resultado_desconhecido_recebe_ack(): void + { + $processor = Mockery::mock(MailNotificationProcessor::class); + $processor->shouldReceive('process')->once() + ->andThrow(new EmailDeliveryOutcomeUnknownException('Timeout SMTP')); + + $this->commandUnderTest($processor)->accept($this->message($this->body(), true)); + } + + public function test_falha_de_banco_vai_para_dlq(): void + { + $processor = Mockery::mock(MailNotificationProcessor::class); + $processor->shouldReceive('process')->once()->andThrow(new RuntimeException('Banco indisponível')); + + $this->commandUnderTest($processor)->accept($this->message($this->body(), false)); + } + + private function message(string $body, bool $shouldAck): AMQPMessage + { + $message = Mockery::mock(AMQPMessage::class); + $message->shouldReceive('getBody')->andReturn($body); + + if ($shouldAck) { + $message->shouldReceive('ack')->once(); + $message->shouldNotReceive('nack'); + } else { + $message->shouldReceive('nack')->once()->with(false, false); + $message->shouldNotReceive('ack'); + } + + return $message; + } + + private function commandUnderTest(MailNotificationProcessor $processor): MailNotificationCommand + { + // O mock evita conexão real com o RabbitMQ. + $rabbit = Mockery::mock(RabbitMQService::class); + + return new class($rabbit, $processor) extends MailNotificationCommand { + public function accept(AMQPMessage $message): void + { + $this->processMessage($message); + } + }; + } +} diff --git a/tests/Feature/MailNotificationProcessorTest.php b/tests/Feature/MailNotificationProcessorTest.php new file mode 100644 index 0000000..439f24a --- /dev/null +++ b/tests/Feature/MailNotificationProcessorTest.php @@ -0,0 +1,191 @@ + 'sendmailnotification:200' . uniqid(), + 'event' => 'registration.send', + 'template' => 'send_registration', + 'locale' => 'pt_BR', + 'registration_id' => 200, + 'to' => 'agente@example.com', + 'from' => 'naoresponda@example.com', + 'subject' => 'Inscrição enviada', + 'body' => '

Olá

Clique aqui', + 'created_at' => now()->toIso8601String(), + ]; + } + + private function processor(): MailNotificationProcessor + { + return app(MailNotificationProcessor::class); + } + + public function test_envia_email_com_html_recebido_e_registra_dispatch(): void + { + Mail::fake(); + + $this->processor()->process($this->payload()); + + Mail::assertSent(MailNotification::class, function (MailNotification $mail) { + return $mail->hasTo('agente@example.com') + && $mail->hasSubject('Inscrição enviada') + && str_contains($mail->render(), 'https://mapacultural.example.com/inscricao/200'); + }); + + $this->assertDatabaseHas('email_dispatches', [ + 'to' => 'agente@example.com', + 'status' => 'sent', + 'mailable_type' => MailNotification::class, + ]); + } + + public function test_mensagem_duplicada_nao_envia_de_novo(): void + { + Mail::fake(); + $payload = $this->payload(); + + $this->processor()->process($payload); + $this->processor()->process($payload); + + Mail::assertSent(MailNotification::class, 1); + $this->assertSame(1, EmailDispatch::count()); + } + + public function test_dados_invalidos_lancam_excecao_sem_enviar(): void + { + Mail::fake(); + + $this->expectException(InvalidRegistrationMessageException::class); + + try { + $this->processor()->process($this->payload(['to' => 'invalido'])); + } finally { + Mail::assertNothingSent(); + $this->assertSame(0, EmailDispatch::count()); + } + } + + public function test_falha_no_envio_marca_unknown_e_nao_reenvia(): void + { + $payload = $this->payload(); + Mail::shouldReceive('to')->once()->with('agente@example.com')->andReturnSelf(); + Mail::shouldReceive('send')->once()->andThrow(new RuntimeException('Timeout SMTP')); + + try { + $this->processor()->process($payload); + $this->fail('O resultado incerto deveria ser sinalizado.'); + } catch (EmailDeliveryOutcomeUnknownException $e) { + $this->assertSame('Timeout SMTP', $e->getPrevious()->getMessage()); + } + + $dispatch = EmailDispatch::sole(); + $this->assertSame('unknown', $dispatch->status); + $this->assertSame('Timeout SMTP', $dispatch->error_message); + + // Reprocessar a mesma mensagem (ex.: replay da DLQ) não envia de novo + $this->processor()->process($payload); + $this->assertSame(1, EmailDispatch::count()); + } + + public function test_falha_ao_registrar_sent_apos_envio_nao_marca_failed(): void + { + Mail::fake(); + $payload = $this->payload(); + + // Simula o banco falhando logo depois de o SMTP aceitar o e-mail + EmailDispatch::updating(function (EmailDispatch $dispatch) { + if ($dispatch->status === 'sent') { + throw new RuntimeException('Conexão com o banco perdida'); + } + }); + + try { + $this->processor()->process($payload); + $this->fail('O resultado incerto deveria ser sinalizado.'); + } catch (EmailDeliveryOutcomeUnknownException) { + } + + Mail::assertSent(MailNotification::class, 1); + $this->assertSame('unknown', EmailDispatch::sole()->status); + + $this->processor()->process($payload); + Mail::assertSent(MailNotification::class, 1); + } + + public function test_reserva_existente_em_envio_bloqueia_outro_consumidor(): void + { + Mail::fake(); + $payload = $this->payload(); + + EmailDispatch::create([ + 'to' => $payload['to'], + 'subject' => $payload['subject'], + 'mailable_type' => MailNotification::class, + 'meta' => ['message_id' => $payload['message_id']], + 'status' => 'sending', + ]); + + $this->processor()->process($payload); + + Mail::assertNothingSent(); + $this->assertSame(1, EmailDispatch::count()); + } + + public function test_indice_unico_impede_dois_dispatches_com_mesmo_message_id(): void + { + $row = [ + 'to' => 'agente@example.com', + 'subject' => 'Inscrição enviada', + 'mailable_type' => MailNotification::class, + 'meta' => json_encode(['message_id' => 'sendmailnotification:dup']), + 'status' => 'sending', + 'created_at' => now(), + 'updated_at' => now(), + ]; + + EmailDispatch::query()->insert($row); + + $this->expectException(UniqueConstraintViolationException::class); + EmailDispatch::query()->insert($row); + } + + public function test_dispatch_failed_pode_ser_reprocessado(): void + { + Mail::fake(); + $payload = $this->payload(); + + EmailDispatch::create([ + 'to' => $payload['to'], + 'subject' => $payload['subject'], + 'mailable_type' => MailNotification::class, + 'meta' => ['message_id' => $payload['message_id']], + 'status' => 'failed', + 'error_message' => 'erro anterior', + ]); + + $this->processor()->process($payload); + + Mail::assertSent(MailNotification::class, 1); + $dispatch = EmailDispatch::sole(); + $this->assertSame('sent', $dispatch->status); + $this->assertNull($dispatch->error_message); + } +}