feat: mercure_publish() PHP function to dispatch Mercure updates by dunglas · Pull Request #1927 · php/frankenphp
mercure.go
Main Go implementation of
go_mercure_publish with Mercure hub integration
mercure-skip.go
Stub implementation when built with nomercure tag
context.go
Adds mercureContext to frankenPHPContext for hub storage
frankenphp.c
C implementation of mercure_publish() PHP function
frankenphp.stub.php
PHP function signature declaration for mercure_publish()
frankenphp_arginfo.h
Generated argument info for the new function
caddy/mercure.go
Caddy integration to discover and inject Mercure hub
caddy/mercure-skip.go
Caddy stub when built without Mercure
caddy/module.go
Updates to conditionally inject Mercure hub into requests
caddy/workerconfig.go
Improved error handling in worker configuration parsing
caddy/app.go
Simplified error handling for subdirective errors
caddy/caddy.go
Fixed typo and improved error message formatting
frankenphp.go
Removed unused ErrRequestContextCreation variable
docs/mercure.md
Added documentation for mercure_publish() function
docs/compile.md
Documented Mercure as optional dependency with build tag
go.mod, go.sum
Added github.com/dunglas/mercure v0.21.2 dependency
caddy/go.mod, caddy/go.sum
Updated Mercure caddy module to v0.21.2