Skip to content

Commit 47a7aeb

Browse files
committed
Merge branch '7.1' into 7.2
* 7.1: [#19940] Use specialized directive Add more necessary information Update calling_commands.rst - call the command non interactively [HttpFoundation] Update http response test constraint signature add symfonycasts links in frontend doc [Serializer] Add class/format/context to NameConverterInterface
2 parents 719ea94 + afe6504 commit 47a7aeb

File tree

5 files changed

+38
-4
lines changed

5 files changed

+38
-4
lines changed

console/calling_commands.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ method)::
3636
'--yell' => true,
3737
]);
3838

39+
// disable interactive behavior for the greet command
40+
$greetInput->setInteractive(false);
41+
3942
$returnCode = $this->getApplication()->doRun($greetInput, $output);
4043

4144
// ...

frontend.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ be executed by a browser.
6161
AssetMapper (Recommended)
6262
~~~~~~~~~~~~~~~~~~~~~~~~~
6363

64+
.. screencast::
65+
66+
Do you prefer video tutorials? Check out the `AssetMapper screencast series`_.
67+
6468
AssetMapper is the recommended system for handling your assets. It runs entirely
6569
in PHP with no complex build step or dependencies. It does this by leveraging
6670
the ``importmap`` feature of your browser, which is available in all browsers thanks
@@ -118,6 +122,10 @@ the `StimulusBundle Documentation`_
118122
Using a Front-end Framework (React, Vue, Svelte, etc)
119123
-----------------------------------------------------
120124

125+
.. screencast::
126+
127+
Do you prefer video tutorials? Check out the `API Platform screencast series`_.
128+
121129
If you want to use a front-end framework (Next.js, React, Vue, Svelte, etc),
122130
we recommend using their native tools and using Symfony as a pure API. A wonderful
123131
tool to do that is `API Platform`_. Their standard distribution comes with a
@@ -143,3 +151,5 @@ Other Front-End Articles
143151
.. _`Symfony UX`: https://ux.symfony.com
144152
.. _`API Platform`: https://api-platform.com/
145153
.. _`SensioLabs Minify Bundle`: https://github.com/sensiolabs/minify-bundle
154+
.. _`AssetMapper screencast series`: https://symfonycasts.com/screencast/asset-mapper
155+
.. _`API Platform screencast series`: https://symfonycasts.com/screencast/api-platform

reference/forms/types/time.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ values for the hour, minute and second fields::
8080
],
8181
]);
8282

83+
.. seealso::
84+
85+
See the `with_seconds`_ option on how to enable seconds in the form type.
86+
8387
.. include:: /reference/forms/types/options/hours.rst.inc
8488

8589
.. include:: /reference/forms/types/options/html5.rst.inc

serializer/custom_name_converter.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@ A custom name converter can handle such cases::
4343
}
4444
}
4545

46+
.. versionadded:: 7.1
47+
48+
Accessing the current class name, format and context via
49+
:method:`Symfony\\Component\\Serializer\\NameConverter\\NameConverterInterface::normalize`
50+
and :method:`Symfony\\Component\\Serializer\\NameConverter\\NameConverterInterface::denormalize`
51+
was introduced in Symfony 7.1.
52+
53+
.. note::
54+
55+
You can also implement
56+
:class:`Symfony\\Component\\Serializer\\NameConverter\\AdvancedNameConverterInterface`
57+
to access the current class name, format and context.
58+
4659
Then, configure the serializer to use your name converter:
4760

4861
.. configuration-block::

testing.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -961,11 +961,11 @@ However, Symfony provides useful shortcut methods for the most common cases:
961961
Response Assertions
962962
...................
963963

964-
``assertResponseIsSuccessful(string $message = '')``
964+
``assertResponseIsSuccessful(string $message = '', bool $verbose = true)``
965965
Asserts that the response was successful (HTTP status is 2xx).
966-
``assertResponseStatusCodeSame(int $expectedCode, string $message = '')``
966+
``assertResponseStatusCodeSame(int $expectedCode, string $message = '', bool $verbose = true)``
967967
Asserts a specific HTTP status code.
968-
``assertResponseRedirects(?string $expectedLocation = null, ?int $expectedCode = null, string $message = '')``
968+
``assertResponseRedirects(?string $expectedLocation = null, ?int $expectedCode = null, string $message = '', bool $verbose = true)``
969969
Asserts the response is a redirect response (optionally, you can check
970970
the target location and status code). The excepted location can be either
971971
an absolute or a relative path.
@@ -983,9 +983,13 @@ Response Assertions
983983
Asserts the response format returned by the
984984
:method:`Symfony\\Component\\HttpFoundation\\Response::getFormat` method
985985
is the same as the expected value.
986-
``assertResponseIsUnprocessable(string $message = '')``
986+
``assertResponseIsUnprocessable(string $message = '', bool $verbose = true)``
987987
Asserts the response is unprocessable (HTTP status is 422)
988988

989+
.. versionadded:: 7.1
990+
991+
The ``$verbose`` parameters were introduced in Symfony 7.1.
992+
989993
Request Assertions
990994
..................
991995

0 commit comments

Comments
 (0)