From fa8f5b191bf11cd1c8e29f56fea743855d597e54 Mon Sep 17 00:00:00 2001 From: Alexander Hofbauer Date: Thu, 17 Apr 2025 09:15:22 +0200 Subject: [PATCH 01/17] [Mailer] Document email.image name parameter --- mailer.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mailer.rst b/mailer.rst index a6b5eb819d8..034f9bdfe97 100644 --- a/mailer.rst +++ b/mailer.rst @@ -1093,6 +1093,14 @@ the email contents:

Welcome {{ email.toName }}!

{# ... #} +By default this will create an attachment using the file path as filename: +``Content-Disposition: inline; name="cid..."; filename="@images/logo.png"``. +This behavior can be overridden by passing a name (the third argument): + +.. code-block:: html+twig + + My Logo + .. _mailer-inline-css: Inlining CSS Styles From d8ac2923438cd19b28bc3a51577e5b505102eb64 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 24 Apr 2025 09:24:02 +0200 Subject: [PATCH 02/17] fix path to Panther web server router file The path is used as an argument for the `php` binary which treats it relative to the document root directory that is passed with the `-t` option (in a typical Symfony application the document root directory is `public` which is located in the same parent directory as the `tests` directory). --- testing/end_to_end.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/end_to_end.rst b/testing/end_to_end.rst index 83d61b1e60f..80e970bd2cd 100644 --- a/testing/end_to_end.rst +++ b/testing/end_to_end.rst @@ -878,7 +878,7 @@ Then declare it as a router for Panther server in ``phpunit.xml.dist`` using the - + From 9f7cc9d5d899a2afc46ca1be67f2242a21326168 Mon Sep 17 00:00:00 2001 From: Arnaud Thibaudet Date: Thu, 24 Apr 2025 10:17:29 +0200 Subject: [PATCH 03/17] Fix typo on parameter name Signed-off-by: Arnaud Thibaudet --- translation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translation.rst b/translation.rst index 86282090801..23949b7e67f 100644 --- a/translation.rst +++ b/translation.rst @@ -487,11 +487,11 @@ your application: .. code-block:: twig - {{ 'Application version: {version}'|trans }} + {{ 'Application version: {app_version}'|trans }} {# output: "Application version: 1.2.3" #} {# parameters passed to the message override global parameters #} - {{ 'Package version: {version}'|trans({'{version}': '2.3.4'}) }} + {{ 'Package version: {app_version}'|trans({'{app_version}': '2.3.4'}) }} # Displays "Package version: 2.3.4" Forcing the Translator Locale From ce4cd4db8dc7154a63c9951f5a276b11f93cc29e Mon Sep 17 00:00:00 2001 From: Jorick Pepin Date: Thu, 24 Apr 2025 17:11:47 +0200 Subject: [PATCH 04/17] [BrowserKit] Fix `submitForm` behaviour --- components/browser_kit.rst | 2 +- testing.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/browser_kit.rst b/components/browser_kit.rst index c744837d7b1..21ceaf5a095 100644 --- a/components/browser_kit.rst +++ b/components/browser_kit.rst @@ -147,7 +147,7 @@ field values, etc.) before submitting it:: $crawler = $client->request('GET', 'https://github.com/login'); // find the form with the 'Log in' button and submit it - // 'Log in' can be the text content, id, value or name of a