Skip to content

Commit e8094bb

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Add missing argument Added replacement suggestions for forbidden directives [#19940] Use specialized directive Add more necessary information Remove obsolete whitelist entry 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 [Mesenger] Mention that some option doesn't have docs
2 parents 58e825a + effd9bd commit e8094bb

File tree

9 files changed

+43
-9
lines changed

9 files changed

+43
-9
lines changed

.doctor-rst.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ rules:
2323
forbidden_directives:
2424
directives:
2525
- '.. index::'
26-
- '.. caution::'
26+
- directive: '.. caution::'
27+
replacements: ['.. warning::', '.. danger::']
2728
indention: ~
2829
lowercase_as_in_use_statements: ~
2930
max_blank_lines:
@@ -101,7 +102,6 @@ whitelist:
101102
- '#. The most important config file is ``app/config/services.yml``, which now is'
102103
- 'The bin/console Command'
103104
- '.. _`LDAP injection`: http://projects.webappsec.org/w/page/13246947/LDAP%20Injection'
104-
- '.. versionadded:: 2.7.2' # Doctrine
105105
- '.. versionadded:: 2.8.0' # Doctrine
106106
- '.. versionadded:: 1.9.0' # Encore
107107
- '.. versionadded:: 1.18' # Flex in setup/upgrade_minor.rst

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
key: ${{ runner.os }}-doctor-rst-${{ steps.extract_base_branch.outputs.branch }}
7474

7575
- name: "Run DOCtor-RST"
76-
uses: docker://oskarstark/doctor-rst:1.63.0
76+
uses: docker://oskarstark/doctor-rst:1.64.0
7777
with:
7878
args: --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache
7979

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

messenger.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ The transport has a number of options:
15221522
(no description available)
15231523

15241524
``sasl_method``
1525-
1525+
(no description available)
15261526

15271527
``connection_name``
15281528
For custom connection names (requires at least version 1.10 of the PHP AMQP

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.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ property. This can be used instead of
18031803
},
18041804
],
18051805
];
1806-
$jsonContent = $serializer->serialize($person, 'json');
1806+
$jsonContent = $serializer->serialize($person, 'json', $context);
18071807
// $jsonContent contains {"name":"cordoval","age":34,"createdAt":"2014-03-22T09:43:12-0500"}
18081808

18091809
Advanced Deserialization

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)