diff --git a/_images/mercure/panel.png b/_images/mercure/panel.png new file mode 100644 index 00000000000..22b214f5ff2 Binary files /dev/null and b/_images/mercure/panel.png differ diff --git a/mercure.rst b/mercure.rst index bcfbb422779..374157c6209 100644 --- a/mercure.rst +++ b/mercure.rst @@ -568,6 +568,44 @@ sent. Here is the PublisherStub implementation:: App\Tests\Functional\Fixtures\PublisherStub: decorates: mercure.hub.default.publisher +.. versionadded:: 0.2 + +Debugging +--------- + +The WebProfiler panel was introduced in MercureBundle 0.2. Enable it on your configuration, as following: + +.. configuration-block:: + + .. code-block:: yaml + + # config/packages/mercure.yaml + mercure: + enable_profiler: '%kernel.debug%' + + .. code-block:: xml + + + + + + + + + + .. code-block:: php + + // config/packages/mercure.php + $container->loadFromExtension('mercure', [ + 'enable_profiler' => '%kernel.debug%', + ]); + + +.. image:: /_images/mercure/panel.png + .. _`the Mercure protocol`: https://github.com/dunglas/mercure#protocol-specification .. _`Server-Sent Events (SSE)`: https://developer.mozilla.org/docs/Server-sent_events .. _`a polyfill`: https://github.com/Yaffle/EventSource