Skip to content

Commit 62edf18

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Update mercure.rst Adding missing `use`s
2 parents cc97889 + 77baf58 commit 62edf18

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

form/create_custom_field_type.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ These are the most important methods that a form type class can define:
148148
``finishView()``
149149
When creating a form type that consists of many fields, this method allows
150150
to modify the "view" of any of those fields. For any other use case, it's
151-
recommended to use instead the ``buildView()`` method.
151+
recommended to use ``buildView()`` instead.
152152

153153
``getParent()``
154154
If your custom type is based on another type (i.e. they share some
@@ -467,6 +467,8 @@ defined by the form or be completely independent::
467467
namespace App\Form\Type;
468468

469469
use Doctrine\ORM\EntityManagerInterface;
470+
use Symfony\Component\Form\FormInterface;
471+
use Symfony\Component\Form\FormView;
470472
// ...
471473

472474
class PostalAddressType extends AbstractType

mercure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ the publicly available URL (e.g. ``https://example.com/.well-known/mercure``).
107107
The clients must also bear a `JSON Web Token`_ (JWT)
108108
to the Mercure Hub to be authorized to publish updates and, sometimes, to subscribe.
109109

110-
This token must be signed with the same secret key as the one used by the Hub to verify the JWT (``!ChangeMe!`` in you use the Docker integration).
110+
This token must be signed with the same secret key as the one used by the Hub to verify the JWT (``!ChangeMe!`` if you use the Docker integration).
111111
This secret key must be stored in the ``MERCURE_JWT_SECRET`` environment variable.
112112
MercureBundle will use it to automatically generate and sign the needed JWTs.
113113

0 commit comments

Comments
 (0)