Skip to content

Commit b338926

Browse files
committed
Review
1 parent 6124c2e commit b338926

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

components/mercure.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ The following example shows the component in action::
3737
use Symfony\Component\Mercure\Update;
3838
use Symfony\Component\Mercure\Jwt\StaticJwtProvide;
3939

40-
$publisher = new Publisher(URL, new StaticJwtProvide(JWT));
41-
// Serialize the update, and dispatch it to the hub, that will broadcast it to clients
40+
$publisher = new Publisher(HUB_URL, new StaticJwtProvide(JWT));
41+
// Serialize the update, and dispatch it to the hub, that will broadcast it to the clients
4242
$id = $publisher(new Update('https://example.com/books/1.jsonld', 'Hi from Symfony!', ['target1', 'target2']));
4343

4444
Read the full :doc:`Mercure integration documentation </mercure>` to learn

mercure.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ out of the box in most modern browsers (Edge and IE require `a polyfill`_) and
2626
has `high-level implementations`_ in many programming languages.
2727

2828
Mercure comes with an authorization mechanism,
29-
automatic re-connection in case of networks issues
29+
automatic re-connection in case of network issues
3030
with retrieving of lost updates, "connection-less" push for smartphones and
3131
auto-discoverability (a supported client can automatically discover and
3232
subscribe to updates of a given resource thanks to a specific HTTP header).
@@ -83,7 +83,7 @@ Run the following command to start it:
8383
The `API Platform distribution`_ comes with a Docker Compose configuration
8484
as well as a Helm chart for Kubernetes that are 100% compatible with Symfony,
8585
and contain a Mercure hub.
86-
You can copy them in your project, even if you don't use the API Platform framework.
86+
You can copy them in your project, even if you don't use API Platform.
8787

8888
Configuration
8989
-------------
@@ -115,7 +115,7 @@ publish:
115115
}
116116
117117
Because the array is empty, the Symfony app will only be authorized to publish
118-
public updates (see the authorization section for further informations).
118+
public updates (see the authorization_ section for further informations).
119119

120120
.. tip::
121121

@@ -515,7 +515,6 @@ hypermedia API, and automatic update broadcasting through the Mercure hub:
515515
.. code-block:: php
516516
517517
// src/Entity/Book.php
518-
519518
namespace App\Entity;
520519
521520
use ApiPlatform\Core\Annotation\ApiResource;

0 commit comments

Comments
 (0)