symfony/mercure-bundle

Dumping the complete publisher in DataCollector breaks the Symfony toolbar

Closed this issue · 0 comments

  1. Build a custom jwt provider (as stated in the docs)

  2. The Mercure Datacollector uses the whole publisher (object)
    image

  3. Symfore security UsageTrackingTokenStorage uses the ContainerInterface (sessionLocator) which results in the above closure call.

  4. The Symfony debug toolbar will break:

request.CRITICAL: Uncaught PHP Exception Exception: "Serialization of 'Closure' is not allowed" at /app/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php line 175 {"exception":"[object] (Exception(code: 0): Serialization of 'Closure' is not allowed at /app/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php:175)"}