feat: mercure_publish() PHP function to dispatch Mercure updates (#1927)

* feat: mercure_publish() PHP function to dispatch Mercure updates

* fix stubs for old versions

* review

* cleanup and fixes
This commit is contained in:
Kévin Dunglas
2025-11-18 09:59:53 +01:00
committed by GitHub
parent 853cb67e95
commit 41cb2bbeaa
25 changed files with 521 additions and 215 deletions

View File

@@ -32,3 +32,7 @@ function frankenphp_response_headers(): array|bool {}
*/
function apache_response_headers(): array|bool {}
/**
* @param string|string[] $topics
*/
function mercure_publish(string|array $topics, string $data = '', bool $private = false, ?string $id = null, ?string $type = null, ?int $retry = null): string {}