Skip to content

Commit bf9dd53

Browse files
committed
Merge branch '4.2'
* 4.2: [symfony#10258] fix a minor typo Fixed some misc issues Fix wrong parentheses match in documentation [Mercure] Link to the English version of MDN
2 parents cc22ecc + cc831f0 commit bf9dd53

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

best_practices/security.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ be reused in other parts of the application. Imagine that you want to add
157157
a link in a template that will only be seen by authors. Right now you'll
158158
need to repeat the expression code using Twig syntax:
159159

160-
.. code-block:: html+jinja
160+
.. code-block:: html+twig
161161

162162
{% if app.user and app.user.email == post.authorEmail %}
163163
<a href=""> ... </a>
@@ -199,7 +199,7 @@ Now you can reuse this method both in the template and in the security expressio
199199
// ...
200200
}
201201

202-
.. code-block:: html+jinja
202+
.. code-block:: html+twig
203203

204204
{% if post.isAuthor(app.user) %}
205205
<a href=""> ... </a>

components/serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ There are several types of normalizers available:
653653
calling the constructor during the denormalization process.
654654

655655
Objects are normalized to a map of property names and values (names are
656-
generated removing the ``get``, ``set``, ``has`` or ``remove`` prefix from
656+
generated removing the ``get``, ``set``, ``has``, ``is`` or ``remove`` prefix from
657657
the method name and lowercasing the first letter; e.g. ``getFirstName()`` ->
658658
``firstName``).
659659

email.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ To keep things decoupled, the email body has been stored in a template and
9494
rendered with the ``renderView()`` method. The ``registration.html.twig``
9595
template might look something like this:
9696

97-
.. code-block:: html+jinja
97+
.. code-block:: html+twig
9898

9999
{# templates/emails/registration.html.twig #}
100100
<h3>You did it! You registered!</h3>

form/create_custom_field_type.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ link for details), create a ``shipping_widget`` block to handle this:
174174

175175
You can further customize the template used to render each children of the
176176
choice type. The block to override in that case is named "block name" +
177-
``_entry`` + "element name" (``label``, ``errors`` or ``widget``) (e.g. to
177+
``_entry_`` + "element name" (``label``, ``errors`` or ``widget``) (e.g. to
178178
customize the labels of the children of the Shipping widget you'd need to
179179
define ``{% block shipping_entry_label %} ... {% endblock %}``).
180180

mercure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ Checkout `the dedicated API Platform documentation`_ to learn more about
530530
its Mercure support.
531531

532532
.. _`the Mercure protocol`: https://github.com/dunglas/mercure#protocol-specification
533-
.. _`Server-Sent Events (SSE)`: https://developer.mozilla.org/fr/docs/Server-sent_events
533+
.. _`Server-Sent Events (SSE)`: https://developer.mozilla.org/docs/Server-sent_events
534534
.. _`a polyfill`: https://github.com/Yaffle/EventSource
535535
.. _`high-level implementations`: https://github.com/dunglas/mercure#resources
536536
.. _`In this recording`: https://www.youtube.com/watch?v=UI1l0JOjLeI

reference/configuration/framework.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ cookie_samesite
845845

846846
**type**: ``string`` or ``null`` **default**: ``null``
847847

848-
It controls they way cookies are sent when the HTTP request was not originated
848+
It controls the way cookies are sent when the HTTP request was not originated
849849
from the same domain the cookies are associated to. Setting this option is
850850
recommended to mitigate `CSRF security attacks`_.
851851

@@ -1982,7 +1982,7 @@ the ``dev`` environment).
19821982
given the adapter they are based on. Internally, a pool wraps the definition
19831983
of an adapter.
19841984

1985-
.. _reference-cache-systen:
1985+
.. _reference-cache-system:
19861986

19871987
system
19881988
......

serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Configuring the Metadata Cache
157157

158158
The metadata for the serializer is automatically cached to enhance application
159159
performance. By default, the serializer uses the ``cache.system`` cache pool
160-
which is configured using the :ref:`cache.system <reference-cache-systen>`
160+
which is configured using the :ref:`cache.system <reference-cache-system>`
161161
option.
162162

163163
Enabling a Name Converter

templating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ being used and generating the correct paths accordingly.
673673
If you need absolute URLs for assets, use the ``absolute_url()`` Twig function
674674
as follows:
675675

676-
.. code-block:: html+jinja
676+
.. code-block:: html+twig
677677

678678
<img src="{{ absolute_url(asset('images/logo.png')) }}" alt="Symfony!" />
679679

validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ message:
161161

162162
.. code-block:: text
163163
164-
App\Entity\Author.name:
164+
Object(App\Entity\Author).name:
165165
This value should not be blank
166166
167167
If you insert a value into the ``name`` property, the happy success message

validation/severity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ method. Each constraint exposes the attached payload as a public property::
142142
For example, you can leverage this to customize the ``form_errors`` block
143143
so that the severity is added as an additional HTML class:
144144

145-
.. code-block:: html+jinja
145+
.. code-block:: html+twig
146146

147147
{%- block form_errors -%}
148148
{%- if errors|length > 0 -%}

workflow/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ like this:
129129
'marking_store' => [
130130
'type' => 'multiple_state', // or 'single_state'
131131
'arguments' => ['currentPlace'],
132-
),
132+
],
133133
'supports' => ['App\Entity\BlogPost'],
134134
'places' => [
135135
'draft',

0 commit comments

Comments
 (0)