Skip to content

Commit 49a48a5

Browse files
committed
Merge branch '5.1'
* 5.1: explain precedence of translation directories [Mercure] update mercure doc to add clarification in authorization Update setup.rst
2 parents f8c2034 + a9b761a commit 49a48a5

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

mercure.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,19 @@ a JWT containing a topic selector matching by the update's topic.
364364

365365
To provide this JWT, the subscriber can use a cookie,
366366
or a ``Authorization`` HTTP header.
367-
Cookies are automatically sent by the browsers when opening an ``EventSource`` connection.
368-
Using cookies is the most secure and preferred way when the client is a web browser.
369-
If the client is not a web browser, then using an authorization header is the way to go.
367+
368+
Cookies are automatically sent by the browsers when opening an ``EventSource``
369+
connection if the ``withCredentials`` attribute is set to ``true``:
370+
371+
.. code-block:: javascript
372+
373+
const eventSource = new EventSource(hub, {
374+
withCredentials: true
375+
});
376+
377+
Using cookies is the most secure and preferred way when the client is a web
378+
browser. If the client is not a web browser, then using an authorization header
379+
is the way to go.
370380

371381
.. tip::
372382

reference/configuration/framework.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,10 @@ paths
21052105
**type**: ``array`` **default**: ``[]``
21062106

21072107
This option allows to define an array of paths where the component will look
2108-
for translation files.
2108+
for translation files. The later a path is added, the more priority it has
2109+
(translations from later paths overwrite earlier ones). Translations from the
2110+
`default_path <reference-translator-default_path>` have more priority than
2111+
translations from all these paths.
21092112

21102113
.. _reference-translator-default_path:
21112114

setup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ create new projects. If you use Composer, you need to tell the exact version:
268268

269269
.. code-block:: terminal
270270
271-
$ composer create-project symfony/website-skeleton:^4.4 my_project_name
271+
$ composer create-project symfony/website-skeleton:"^4.4" my_project_name
272272
273273
The Symfony Demo application
274274
----------------------------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy