Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
8905736
Fix error_pages.rst setResponse()
Florian-Merle Nov 21, 2024
29c83bd
bug #20404 Fix error_pages.rst setResponse() (Florian-Merle)
OskarStark Nov 22, 2024
56dfb87
Merge branch '5.4' into 6.4
OskarStark Nov 22, 2024
00c3c29
Merge branch '6.4' into 7.1
OskarStark Nov 22, 2024
1d0e1ea
Merge branch '7.1' into 7.2
OskarStark Nov 22, 2024
bb77024
Use non-static PHPUnit assert methods
javiereguiluz Nov 22, 2024
8a1497b
Combine component and framework docs for Serializer
wouterj Jan 21, 2023
2685f38
minor #17783 Combine component and framework docs for Serializer (wou…
wouterj Nov 23, 2024
2bd48fb
Merge branch '6.4' into 7.1
wouterj Nov 23, 2024
6b365d6
Merge branch '7.1' into 7.2
wouterj Nov 23, 2024
2f8a9d6
Syntax fixes
wouterj Nov 23, 2024
a29d978
Merge branch '7.1' into 7.2
wouterj Nov 23, 2024
337b597
More syntax fixes
wouterj Nov 23, 2024
dc999f3
Add more details to TypeInfo documentation
Korbeil Nov 15, 2024
a51974c
Replace annotation to attribute in form unit testing comment
alamirault Nov 24, 2024
ebfa5e2
[Routing] Add example of Requirement enum
alamirault Nov 24, 2024
421f42c
minor #20405 Use non-static PHPUnit assert methods (javiereguiluz)
javiereguiluz Nov 25, 2024
a884c4c
Merge branch '6.4' into 7.1
javiereguiluz Nov 25, 2024
2666f63
Merge branch '7.1' into 7.2
javiereguiluz Nov 25, 2024
b313d4c
minor #20408 Replace annotation to attribute in form unit testing com…
javiereguiluz Nov 25, 2024
42b4c95
update controller return value doc
Florian-Merle Nov 26, 2024
6b75287
minor #20411 update controller return value (Florian-Merle)
javiereguiluz Nov 26, 2024
d019fc4
Reword
javiereguiluz Nov 26, 2024
42439f2
Merge branch '5.4' into 6.4
javiereguiluz Nov 26, 2024
20e69fa
Merge branch '6.4' into 7.1
javiereguiluz Nov 26, 2024
797c3d6
Merge branch '7.1' into 7.2
javiereguiluz Nov 26, 2024
ee3ec5f
Update DOCtor-RST to 1.63.0
OskarStark Nov 26, 2024
6d19241
minor #20412 Update DOCtor-RST to 1.63.0 (OskarStark)
OskarStark Nov 26, 2024
7fe811e
Merge branch '5.4' into 6.4
OskarStark Nov 26, 2024
129afb8
Merge branch '6.4' into 7.1
OskarStark Nov 26, 2024
9784ab2
Merge branch '7.1' into 7.2
OskarStark Nov 26, 2024
1c2664f
Update http_client.rst
Ejamine Nov 26, 2024
da1caa2
The wrong type is used for autowiring
alessandro-podo Nov 26, 2024
03b029b
minor cs fix for ci
MrYamous Nov 27, 2024
d6d8bb8
Add a note about updating phpdoc in a patch release
fabpot Nov 26, 2024
8147046
minor #20416 Fix CS (MrYamous)
xabbuh Nov 27, 2024
a308ff9
minor #20410 Add a note about updating phpdoc in a patch release (fab…
xabbuh Nov 27, 2024
efb4ecb
minor #20414 The wrong type is used for autowiring (alessandro-podo)
xabbuh Nov 27, 2024
e427a6c
[Security] Secret with remember me feature
MrYamous Nov 27, 2024
63c7f76
minor #20415 [Security] Secret with remember me feature (MrYamous)
xabbuh Nov 27, 2024
a980d5c
Merge branch '5.4' into 6.4
xabbuh Nov 27, 2024
606fa06
Merge branch '6.4' into 7.1
xabbuh Nov 27, 2024
01203e9
Merge branch '7.1' into 7.2
xabbuh Nov 27, 2024
e3a7827
minor #20413 [HttpClient] Testing Using HAR Files - access to contain…
javiereguiluz Nov 27, 2024
4a27315
minor #20409 [Routing] Add example of Requirement enum (alamirault)
javiereguiluz Nov 27, 2024
7fe1d72
Merge branch '6.4' into 7.1
javiereguiluz Nov 27, 2024
b4846b8
Merge branch '7.1' into 7.2
javiereguiluz Nov 27, 2024
0b5820f
Rename variable to stay consistent
OskarStark Nov 27, 2024
e134083
minor #20417 [Routing] Rename variable to stay consistent (OskarStark)
OskarStark Nov 27, 2024
f0bcff3
Merge branch '5.4' into 6.4
OskarStark Nov 27, 2024
d10f5bc
Merge branch '6.4' into 7.1
OskarStark Nov 27, 2024
577b39f
Merge branch '7.1' into 7.2
OskarStark Nov 27, 2024
f6a61f9
Fix minor syntax issues
wouterj Nov 30, 2024
c71b9f9
remove a gc_probability default mention
MrYamous Dec 2, 2024
2083dc2
Allow integer for the calendar option of DateType
MrYamous Dec 2, 2024
30c74fd
minor #20427 Fix minor syntax issues (wouterj)
javiereguiluz Dec 2, 2024
70038a8
Merge branch '6.4' into 7.1
javiereguiluz Dec 2, 2024
a61f328
Merge branch '7.1' into 7.2
javiereguiluz Dec 2, 2024
fb28238
Merge branch '7.2' into 7.3
javiereguiluz Dec 2, 2024
2ab3857
Fix reference to `vendor/` dir
phansys Nov 30, 2024
cd8a822
minor #20426 [PHPUnitBridge] Fix reference to `vendor/` dir (phansys)
javiereguiluz Dec 2, 2024
df58a32
Merge branch '6.4' into 7.1
javiereguiluz Dec 2, 2024
db2e753
Merge branch '7.1' into 7.2
javiereguiluz Dec 2, 2024
a5305a4
Merge branch '7.2' into 7.3
javiereguiluz Dec 2, 2024
a2bd31b
minor #20430 [Form] Allow integer for the calendar option of `DateTyp…
javiereguiluz Dec 2, 2024
fac004a
Merge branch '7.2' into 7.3
javiereguiluz Dec 2, 2024
0b521e7
URLType: explain `null` value for `default_protocol`
alexislefebvre Nov 29, 2024
877ec46
minor #20425 [Form] URLType : explain `null` value for `default_proto…
javiereguiluz Dec 2, 2024
a798057
Reword
javiereguiluz Dec 2, 2024
a0f7fab
fix: Update micro_kernel_trait.rst
m0rff Dec 2, 2024
a820bde
Merge branch '6.4' into 7.1
javiereguiluz Dec 2, 2024
7f9dd46
Merge branch '7.1' into 7.2
javiereguiluz Dec 2, 2024
037fcb5
Merge branch '7.2' into 7.3
javiereguiluz Dec 2, 2024
646e199
[Messenger] Document `getRetryDelay()`
MrYamous Dec 2, 2024
8f57699
minor #20429 [Messenger] Document `getRetryDelay()` (MrYamous)
javiereguiluz Dec 2, 2024
f99ae71
Reword
javiereguiluz Dec 2, 2024
6b0e324
Merge branch '7.2' into 7.3
javiereguiluz Dec 2, 2024
a90dbef
minor #20428 [Session] Remove a `gc_probability` default value mentio…
javiereguiluz Dec 2, 2024
977be32
Reword
javiereguiluz Dec 2, 2024
f7558ef
Merge branch '7.2' into 7.3
javiereguiluz Dec 2, 2024
00a781f
Update mailer.rst: Changing order of tips
ThomasLandauer Dec 2, 2024
7f6e80b
minor #20431 fix: Update micro_kernel_trait.rst (m0rff)
javiereguiluz Dec 3, 2024
a9ba960
Merge branch '7.2' into 7.3
javiereguiluz Dec 3, 2024
290cfae
[Serializer] Minor improvements
HypeMC Dec 3, 2024
36326a9
fix broken links and syntax issues
MrYamous Dec 4, 2024
6e55716
minor #20435 [Serializer] Fix broken links and syntax issues (MrYamous)
javiereguiluz Dec 5, 2024
5aa1ea2
Merge branch '6.4' into 7.1
javiereguiluz Dec 5, 2024
d0b5c7b
Merge branch '7.1' into 7.2
javiereguiluz Dec 5, 2024
02c6434
Merge branch '7.2' into 7.3
javiereguiluz Dec 5, 2024
44f0f13
minor #20434 [Serializer] Minor improvements (HypeMC)
javiereguiluz Dec 5, 2024
cebe1f4
Merge branch '6.4' into 7.1
javiereguiluz Dec 5, 2024
bd7827a
Merge branch '7.1' into 7.2
javiereguiluz Dec 5, 2024
03d8548
Merge branch '7.2' into 7.3
javiereguiluz Dec 5, 2024
ec2743d
[HttpFoundation] Do not use named parameters in example
MrYamous Dec 3, 2024
8319ddf
minor #20433 [HttpFoundation] Do not use named parameters in example …
javiereguiluz Dec 5, 2024
d10bc9f
Merge branch '7.2' into 7.3
javiereguiluz Dec 5, 2024
521a728
[Mercure] Shortening the screenshot description
ThomasLandauer Nov 7, 2024
1076018
minor #20374 [Mercure] Shortening the screenshot description (ThomasL…
javiereguiluz Dec 5, 2024
d33e724
Merge branch '6.4' into 7.1
javiereguiluz Dec 5, 2024
65db60d
Merge branch '7.1' into 7.2
javiereguiluz Dec 5, 2024
78be19c
Merge branch '7.2' into 7.3
javiereguiluz Dec 5, 2024
5e60b34
Update mercure.rst: Deleting forgotten(?) sentence
ThomasLandauer Nov 7, 2024
c961a00
minor #20376 [Mercure] Deleting forgotten(?) sentence (ThomasLandauer)
javiereguiluz Dec 5, 2024
0c9d0ac
[Security] Fix the namespace of a code example
javiereguiluz Dec 5, 2024
2675832
minor #20437 [Security] Fix the namespace of a code example (javiereg…
javiereguiluz Dec 6, 2024
1bc779b
Merge branch '6.4' into 7.1
javiereguiluz Dec 6, 2024
b469ceb
Merge branch '7.1' into 7.2
javiereguiluz Dec 6, 2024
b2cd9f2
Merge branch '7.2' into 7.3
javiereguiluz Dec 6, 2024
5bcde9c
Update asset_mapper.rst
moshkov-konstantin Nov 1, 2024
6bb8e34
minor #20366 Update asset_mapper.rst (moshkov-konstantin)
javiereguiluz Dec 6, 2024
36bef93
Revert a change
javiereguiluz Dec 6, 2024
3ee3f40
Merge branch '6.4' into 7.1
javiereguiluz Dec 6, 2024
48cfcf0
Merge branch '7.1' into 7.2
javiereguiluz Dec 6, 2024
6f90df5
Merge branch '7.2' into 7.3
javiereguiluz Dec 6, 2024
a8841ee
Update Expression_language: lint function
kl3sk Oct 28, 2024
18630b7
minor #20353 [ExpressionLanguage] Update Expression_language: lint fu…
javiereguiluz Dec 6, 2024
694cd4c
Minor tweaks
javiereguiluz Dec 6, 2024
71e6c09
Merge branch '7.1' into 7.2
javiereguiluz Dec 6, 2024
3f82cd9
Merge branch '7.2' into 7.3
javiereguiluz Dec 6, 2024
236e419
[Security] Authenticator methods description
smnandre Aug 2, 2024
26e89cc
minor #20090 [Security] Authenticator methods description (smnandre)
javiereguiluz Dec 6, 2024
61e62d4
Merge branch '6.4' into 7.1
javiereguiluz Dec 6, 2024
d284a21
Merge branch '7.1' into 7.2
javiereguiluz Dec 6, 2024
001b3ab
Merge branch '7.2' into 7.3
javiereguiluz Dec 6, 2024
e58460b
[EventDispatcher] Fix the syntax of the Learn More list
javiereguiluz Dec 6, 2024
51d746d
minor #20438 [EventDispatcher] Fix the syntax of the Learn More list …
javiereguiluz Dec 6, 2024
6ecadde
Merge branch '6.4' into 7.1
javiereguiluz Dec 6, 2024
85d2296
Merge branch '7.1' into 7.2
javiereguiluz Dec 6, 2024
da12fed
Merge branch '7.2' into 7.3
javiereguiluz Dec 6, 2024
8f1912f
Update mercure.rst: Actually using the env vars
ThomasLandauer Nov 8, 2024
bf79db1
minor #20379 [Mercure] Actually using the env vars (ThomasLandauer)
javiereguiluz Dec 6, 2024
605961e
Merge branch '6.4' into 7.1
javiereguiluz Dec 6, 2024
daa6ed1
Merge branch '7.1' into 7.2
javiereguiluz Dec 6, 2024
90701ba
Merge branch '7.2' into 7.3
javiereguiluz Dec 6, 2024
a984be5
fix: remove quotes on routes
alexislefebvre Dec 6, 2024
119c3df
minor #20443 [Routing] fix: remove quotes on routes (alexislefebvre)
OskarStark Dec 7, 2024
7643423
Merge branch '6.4' into 7.1
OskarStark Dec 7, 2024
c7babc8
Merge branch '7.1' into 7.2
OskarStark Dec 7, 2024
979043e
minor #20432 [Mailer] Update mailer.rst: Changing order of tips (Thom…
wouterj Dec 7, 2024
38b721e
Fix typo
dearaujoj Dec 7, 2024
67da10e
minor #20445 Fix typo (dearaujoj)
javiereguiluz Dec 7, 2024
d1108d7
Merge branch '7.2' into 7.3
javiereguiluz Dec 7, 2024
ed9a5a7
Merge branch '6.4' into 7.1
javiereguiluz Dec 7, 2024
b38b42a
Merge branch '7.1' into 7.2
javiereguiluz Dec 7, 2024
3849004
Replaced caution blocks with warning
TimoBakx Dec 7, 2024
fdd5743
minor #20448 Replaced `caution` directive by `warning` (TimoBakx)
wouterj Dec 7, 2024
c14a4e7
[AssetMapper] Document the feature that precompresses assets
javiereguiluz Dec 7, 2024
d78510b
feature #20446 [AssetMapper] Document the feature that precompresses …
OskarStark Dec 7, 2024
84ead23
Merge remote-tracking branch 'origin/6.4' into 7.1
wouterj Dec 7, 2024
85ceb63
Replaced `caution` directive by `warning`
TimoBakx Dec 7, 2024
79f9407
minor #20449 Replaced `caution` directive by `warning` (TimoBakx)
wouterj Dec 7, 2024
221caaa
Merge remote-tracking branch 'origin/7.1' into 7.2
wouterj Dec 7, 2024
0a3fb8d
Replaced `caution` directive by `warning`
TimoBakx Dec 7, 2024
719ea94
minor #20450 Replaced `caution` directive by `warning` (TimoBakx)
wouterj Dec 7, 2024
58e825a
Merge remote-tracking branch 'origin/7.2' into 7.3
wouterj Dec 7, 2024
0f8ce65
[Mesenger] Mention that some option doesn't have docs
javiereguiluz Dec 7, 2024
b53029a
[Serializer] Add class/format/context to NameConverterInterface
mttsch Apr 22, 2024
1082c01
feature #19818 [Serializer] Add class/format/context to NameConverter…
wouterj Dec 7, 2024
a1d672b
add symfonycasts links in frontend doc
MrYamous Dec 7, 2024
d159a4a
[HttpFoundation] Update http response test constraint signature
Feb 1, 2023
b1c97e7
feature #17848 42948 reduce response contraints verbosity (Nicolas Ap…
wouterj Dec 7, 2024
525dead
Update calling_commands.rst - call the command non interactively
Chris53897 Aug 21, 2023
d86b33e
minor #18776 Update calling_commands.rst - call the command non inter…
wouterj Dec 7, 2024
fd5d5bb
Remove obsolete whitelist entry
OskarStark Dec 7, 2024
5dfb6fc
Add more necessary information
Euugi Jun 4, 2024
5e83480
minor #19940 Add more necessary information (Euugi)
wouterj Dec 7, 2024
6aa67f5
[#19940] Use specialized directive
wouterj Dec 7, 2024
bf2627c
minor #20452 Add symfonycasts links in frontend doc (MrYamous)
OskarStark Dec 7, 2024
afe6504
Merge branch '6.4' into 7.1
OskarStark Dec 7, 2024
47a7aeb
Merge branch '7.1' into 7.2
OskarStark Dec 7, 2024
35a3db1
Added replacement suggestions for forbidden directives
TimoBakx Dec 7, 2024
12b66b3
minor #20455 Added replacement suggestions for forbidden directives (…
OskarStark Dec 7, 2024
a0aba24
Merge branch '6.4' into 7.1
OskarStark Dec 7, 2024
f2b4791
Merge branch '7.1' into 7.2
OskarStark Dec 7, 2024
e61db73
minor #20453 Remove obsolete whitelist entry (OskarStark)
OskarStark Dec 7, 2024
161f849
Merge branch '6.4' into 7.1
OskarStark Dec 7, 2024
7619e74
Merge branch '7.1' into 7.2
OskarStark Dec 7, 2024
d94be3f
Add missing argument
famoser Dec 8, 2024
6096fec
minor #20451 [Messenger] [Mesenger] Mention that some option doesn't …
javiereguiluz Dec 9, 2024
b89995c
minor #20457 [Serializer] Add missing argument (famoser)
javiereguiluz Dec 9, 2024
ebd7193
Merge branch '6.4' into 7.1
javiereguiluz Dec 9, 2024
effd9bd
Merge branch '7.1' into 7.2
javiereguiluz Dec 9, 2024
e8094bb
Merge branch '7.2' into 7.3
javiereguiluz Dec 9, 2024
b38b1fa
[Scheduler] Add some pointers regarding worker processes deployment
pgorod Dec 6, 2024
a982ac3
minor #20439 [Scheduler] Add some pointers regarding worker processes…
javiereguiluz Dec 10, 2024
d03ce88
Minor tweaks
javiereguiluz Dec 10, 2024
5868840
Merge branch '6.4' into 7.1
javiereguiluz Dec 10, 2024
db324ea
Merge branch '7.1' into 7.2
javiereguiluz Dec 10, 2024
c63a5d0
Merge branch '7.2' into 7.3
javiereguiluz Dec 10, 2024
b16b567
Update controller.rst
arnolem Dec 8, 2024
630007e
minor #20458 FIX : Early Hint 103 - fix a problem to load "Style" (a…
javiereguiluz Dec 10, 2024
924685d
Merge branch '6.4' into 7.1
javiereguiluz Dec 10, 2024
c51ca3b
Merge branch '7.1' into 7.2
javiereguiluz Dec 10, 2024
49965fb
Merge branch '7.2' into 7.3
javiereguiluz Dec 10, 2024
5cf517d
minor #20407 [TypeInfo] Add more details to TypeInfo documentation (K…
javiereguiluz Dec 10, 2024
405f95e
Minor reword
javiereguiluz Dec 10, 2024
b7f126c
Merge branch '7.2' into 7.3
javiereguiluz Dec 10, 2024
b66e743
[Console] Add support of millisecondes for formatTime
SebLevDev Dec 11, 2024
7bea472
minor #20469 [Console] Add support of millisecondes for `formatTime` …
javiereguiluz Dec 12, 2024
bf5dd10
Add the versionadded directive
javiereguiluz Dec 12, 2024
eb5ffa6
Fix PHP block in TypeInfo documentation
Korbeil Dec 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .doctor-rst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ rules:
forbidden_directives:
directives:
- '.. index::'
- directive: '.. caution::'
replacements: ['.. warning::', '.. danger::']
indention: ~
lowercase_as_in_use_statements: ~
max_blank_lines:
Expand All @@ -46,6 +48,7 @@ rules:
no_namespace_after_use_statements: ~
no_php_open_tag_in_code_block_php_directive: ~
no_space_before_self_xml_closing_tag: ~
non_static_phpunit_assertions: ~
only_backslashes_in_namespace_in_php_code_block: ~
only_backslashes_in_use_statements_in_php_code_block: ~
ordered_use_statements: ~
Expand Down Expand Up @@ -99,7 +102,6 @@ whitelist:
- '#. The most important config file is ``app/config/services.yml``, which now is'
- 'The bin/console Command'
- '.. _`LDAP injection`: http://projects.webappsec.org/w/page/13246947/LDAP%20Injection'
- '.. versionadded:: 2.7.2' # Doctrine
- '.. versionadded:: 2.8.0' # Doctrine
- '.. versionadded:: 1.9.0' # Encore
- '.. versionadded:: 1.18' # Flex in setup/upgrade_minor.rst
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
key: ${{ runner.os }}-doctor-rst-${{ steps.extract_base_branch.outputs.branch }}

- name: "Run DOCtor-RST"
uses: docker://oskarstark/doctor-rst:1.62.3
uses: docker://oskarstark/doctor-rst:1.64.0
with:
args: --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache

Expand Down
5 changes: 3 additions & 2 deletions _build/redirection_map
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,7 @@
/testing/functional_tests_assertions /testing#testing-application-assertions
/components https://symfony.com/components
/components/index https://symfony.com/components
/serializer/normalizers /components/serializer#normalizers
/components/serializer#component-serializer-attributes-groups-annotations /components/serializer#component-serializer-attributes-groups-attributes
/serializer/normalizers /serializer#serializer-built-in-normalizers
/logging/monolog_regex_based_excludes /logging/monolog_exclude_http_codes
/security/named_encoders /security/named_hashers
/components/inflector /string#inflector
Expand Down Expand Up @@ -572,3 +571,5 @@
/doctrine/registration_form /security#security-make-registration-form
/form/form_dependencies /form/create_custom_field_type
/doctrine/reverse_engineering /doctrine#doctrine-adding-mapping
/components/serializer /serializer
/serializer/custom_encoder /serializer/encoders#serializer-custom-encoder
6 changes: 3 additions & 3 deletions bundles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The Bundle System
=================

.. caution::
.. warning::

In Symfony versions prior to 4.0, it was recommended to organize your own
application code using bundles. This is :ref:`no longer recommended <best-practice-no-application-bundles>` and bundles
Expand Down Expand Up @@ -58,7 +58,7 @@ Start by creating a new class called ``AcmeBlogBundle``::
{
}

.. caution::
.. warning::

If your bundle must be compatible with previous Symfony versions you have to
extend from the :class:`Symfony\\Component\\HttpKernel\\Bundle\\Bundle` instead.
Expand Down Expand Up @@ -118,7 +118,7 @@ to be adjusted if needed:

.. _bundles-legacy-directory-structure:

.. caution::
.. warning::

The recommended bundle structure was changed in Symfony 5, read the
`Symfony 4.4 bundle documentation`_ for information about the old
Expand Down
2 changes: 1 addition & 1 deletion bundles/best_practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ with Symfony Flex to install a specific Symfony version:
# recommended to have a better output and faster download time)
composer update --prefer-dist --no-progress

.. caution::
.. warning::

If you want to cache your Composer dependencies, **do not** cache the
``vendor/`` directory as this has side-effects. Instead cache
Expand Down
2 changes: 1 addition & 1 deletion bundles/extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Patterns are transformed into the actual class namespaces using the classmap
generated by Composer. Therefore, before using these patterns, you must generate
the full classmap executing the ``dump-autoload`` command of Composer.

.. caution::
.. warning::

This technique can't be used when the classes to compile use the ``__DIR__``
or ``__FILE__`` constants, because their values will change when loading
Expand Down
2 changes: 1 addition & 1 deletion bundles/override.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ For example, to override the ``templates/registration/confirmed.html.twig``
template from the AcmeUserBundle, create this template:
``<your-project>/templates/bundles/AcmeUserBundle/registration/confirmed.html.twig``

.. caution::
.. warning::

If you add a template in a new location, you *may* need to clear your
cache (``php bin/console cache:clear``), even if you are in debug mode.
Expand Down
2 changes: 1 addition & 1 deletion cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ Then, register the ``SodiumMarshaller`` service using this key:
//->addArgument(['env(base64:CACHE_DECRYPTION_KEY)', 'env(base64:OLD_CACHE_DECRYPTION_KEY)'])
->addArgument(new Reference('.inner'));
.. caution::
.. danger::

This will encrypt the values of the cache items, but not the cache keys. Be
careful not to leak sensitive data in the keys.
Expand Down
4 changes: 2 additions & 2 deletions components/cache/adapters/apcu_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This adapter is a high-performance, shared memory cache. It can *significantly*
increase an application's performance, as its cache contents are stored in shared
memory, a component appreciably faster than many others, such as the filesystem.

.. caution::
.. warning::

**Requirement:** The `APCu extension`_ must be installed and active to use
this adapter.
Expand All @@ -30,7 +30,7 @@ and cache items version string as constructor arguments::
$version = null
);

.. caution::
.. warning::

Use of this adapter is discouraged in write/delete heavy workloads, as these
operations cause memory fragmentation that results in significantly degraded performance.
Expand Down
2 changes: 1 addition & 1 deletion components/cache/adapters/couchbasebucket_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ shared memory; you can store contents independent of your PHP environment.
The ability to utilize a cluster of servers to provide redundancy and/or fail-over
is also available.

.. caution::
.. warning::

**Requirements:** The `Couchbase PHP extension`_ as well as a `Couchbase server`_
must be installed, active, and running to use this adapter. Version ``2.6`` or
Expand Down
2 changes: 1 addition & 1 deletion components/cache/adapters/couchbasecollection_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ shared memory; you can store contents independent of your PHP environment.
The ability to utilize a cluster of servers to provide redundancy and/or fail-over
is also available.

.. caution::
.. warning::

**Requirements:** The `Couchbase PHP extension`_ as well as a `Couchbase server`_
must be installed, active, and running to use this adapter. Version ``3.0`` or
Expand Down
2 changes: 1 addition & 1 deletion components/cache/adapters/filesystem_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ and cache root path as constructor parameters::
$directory = null
);

.. caution::
.. warning::

The overhead of filesystem IO often makes this adapter one of the *slower*
choices. If throughput is paramount, the in-memory adapters
Expand Down
4 changes: 2 additions & 2 deletions components/cache/adapters/memcached_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ shared memory; you can store contents independent of your PHP environment.
The ability to utilize a cluster of servers to provide redundancy and/or fail-over
is also available.

.. caution::
.. warning::

**Requirements:** The `Memcached PHP extension`_ as well as a `Memcached server`_
must be installed, active, and running to use this adapter. Version ``2.2`` or
Expand Down Expand Up @@ -256,7 +256,7 @@ Available Options
executed in a "fire-and-forget" manner; no attempt to ensure the operation
has been received or acted on will be made once the client has executed it.

.. caution::
.. warning::

Not all library operations are tested in this mode. Mixed TCP and UDP
servers are not allowed.
Expand Down
2 changes: 1 addition & 1 deletion components/cache/adapters/php_files_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ file similar to the following::
handles file includes, this adapter has the potential to be much faster than other
filesystem-based caches.

.. caution::
.. warning::

While it supports updates and because it is using OPcache as a backend, this adapter is
better suited for append-mostly needs. Using it in other scenarios might lead to
Expand Down
2 changes: 1 addition & 1 deletion components/cache/adapters/redis_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Unlike the :doc:`APCu adapter </components/cache/adapters/apcu_adapter>`, and si
shared memory; you can store contents independent of your PHP environment. The ability
to utilize a cluster of servers to provide redundancy and/or fail-over is also available.

.. caution::
.. warning::

**Requirements:** At least one `Redis server`_ must be installed and running to use this
adapter. Additionally, this adapter requires a compatible extension or library that implements
Expand Down
6 changes: 3 additions & 3 deletions components/clock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,18 @@ is expired or not, by modifying the clock's time::
$validUntil = new DateTimeImmutable('2022-11-16 15:25:00');

// $validUntil is in the future, so it is not expired
static::assertFalse($expirationChecker->isExpired($validUntil));
$this->assertFalse($expirationChecker->isExpired($validUntil));

// Clock sleeps for 10 minutes, so now is '2022-11-16 15:30:00'
$clock->sleep(600); // Instantly changes time as if we waited for 10 minutes (600 seconds)

// modify the clock, accepts all formats supported by DateTimeImmutable::modify()
static::assertTrue($expirationChecker->isExpired($validUntil));
$this->assertTrue($expirationChecker->isExpired($validUntil));

$clock->modify('2022-11-16 15:00:00');

// $validUntil is in the future again, so it is no longer expired
static::assertFalse($expirationChecker->isExpired($validUntil));
$this->assertFalse($expirationChecker->isExpired($validUntil));
}
}

Expand Down
4 changes: 2 additions & 2 deletions components/config/definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ The separator used in keys is typically ``_`` in YAML and ``-`` in XML.
For example, ``auto_connect`` in YAML and ``auto-connect`` in XML. The
normalization would make both of these ``auto_connect``.

.. caution::
.. warning::

The target key will not be altered if it's mixed like
``foo-bar_moo`` or if it already exists.
Expand Down Expand Up @@ -904,7 +904,7 @@ Otherwise the result is a clean array of configuration values::
$configs
);

.. caution::
.. warning::

When processing the configuration tree, the processor assumes that the top
level array key (which matches the extension name) is already stripped off.
2 changes: 1 addition & 1 deletion components/console/changing_default_command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This will print the following to the command line:

Hello World

.. caution::
.. warning::

This feature has a limitation: you cannot pass any argument or option to
the default command because they are ignored.
Expand Down
2 changes: 1 addition & 1 deletion components/console/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ the wheel, it uses the Symfony EventDispatcher component to do the work::
$application->setDispatcher($dispatcher);
$application->run();

.. caution::
.. warning::

Console events are only triggered by the main command being executed.
Commands called by the main command will not trigger any event, unless
Expand Down
14 changes: 10 additions & 4 deletions components/console/helpers/formatterhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,16 @@ Sometimes you want to format seconds to time. This is possible with the
The first argument is the seconds to format and the second argument is the
precision (default ``1``) of the result::

Helper::formatTime(42); // 42 secs
Helper::formatTime(125); // 2 mins
Helper::formatTime(125, 2); // 2 mins, 5 secs
Helper::formatTime(172799, 4); // 1 day, 23 hrs, 59 mins, 59 secs
Helper::formatTime(0.001); // 1 ms
Helper::formatTime(42); // 42 s
Helper::formatTime(125); // 2 min
Helper::formatTime(125, 2); // 2 min, 5 s
Helper::formatTime(172799, 4); // 1 d, 23 h, 59 min, 59 s
Helper::formatTime(172799.056, 5); // 1 d, 23 h, 59 min, 59 s, 56 ms

.. versionadded:: 7.3

Support for formatting up to milliseconds was introduced in Symfony 7.3.

Formatting Memory
-----------------
Expand Down
2 changes: 1 addition & 1 deletion components/console/helpers/progressbar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ to display it can be customized::
// the bar width
$progressBar->setBarWidth(50);

.. caution::
.. warning::

For performance reasons, Symfony redraws the screen once every 100ms. If this is too
fast or too slow for your application, use the methods
Expand Down
6 changes: 3 additions & 3 deletions components/console/helpers/questionhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ convenient for passwords::
return Command::SUCCESS;
}

.. caution::
.. warning::

When you ask for a hidden response, Symfony will use either a binary, change
``stty`` mode or use another trick to hide the response. If none is available,
Expand Down Expand Up @@ -392,7 +392,7 @@ method::
return Command::SUCCESS;
}

.. caution::
.. warning::

The normalizer is called first and the returned value is used as the input
of the validator. If the answer is invalid, don't throw exceptions in the
Expand Down Expand Up @@ -540,7 +540,7 @@ This way you can test any user interaction (even complex ones) by passing the ap
simulates a user hitting ``ENTER`` after each input, no need for passing
an additional input.

.. caution::
.. warning::

On Windows systems Symfony uses a special binary to implement hidden
questions. This means that those questions don't use the default ``Input``
Expand Down
6 changes: 1 addition & 5 deletions components/event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,7 @@ with some other dispatchers:
Learn More
----------

.. toctree::
:maxdepth: 1

/components/event_dispatcher/generic_event

* :doc:`/components/event_dispatcher/generic_event`
* :ref:`The kernel.event_listener tag <dic-tags-kernel-event-listener>`
* :ref:`The kernel.event_subscriber tag <dic-tags-kernel-event-subscriber>`

Expand Down
8 changes: 6 additions & 2 deletions components/expression_language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ if the expression is not valid::

$expressionLanguage->lint('1 + 2', []); // doesn't throw anything

$expressionLanguage->lint('1 + a', []);
// throws a SyntaxError exception:
// "Variable "a" is not valid around position 5 for expression `1 + a`."

The behavior of these methods can be configured with some flags defined in the
:class:`Symfony\\Component\\ExpressionLanguage\\Parser` class:

Expand All @@ -121,8 +125,8 @@ This is how you can use these flags::

$expressionLanguage = new ExpressionLanguage();

// this returns true because the unknown variables and functions are ignored
var_dump($expressionLanguage->lint('unknown_var + unknown_function()', Parser::IGNORE_UNKNOWN_VARIABLES | Parser::IGNORE_UNKNOWN_FUNCTIONS));
// does not throw a SyntaxError because the unknown variables and functions are ignored
$expressionLanguage->lint('unknown_var + unknown_function()', [], Parser::IGNORE_UNKNOWN_VARIABLES | Parser::IGNORE_UNKNOWN_FUNCTIONS);

.. versionadded:: 7.1

Expand Down
2 changes: 1 addition & 1 deletion components/finder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The ``$file`` variable is an instance of
:class:`Symfony\\Component\\Finder\\SplFileInfo` which extends PHP's own
:phpclass:`SplFileInfo` to provide methods to work with relative paths.

.. caution::
.. warning::

The ``Finder`` object doesn't reset its internal state automatically.
This means that you need to create a new instance if you do not want
Expand Down
2 changes: 1 addition & 1 deletion components/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ method:

// ...

.. caution::
.. warning::

The form's ``createView()`` method should be called *after* ``handleRequest()`` is
called. Otherwise, when using :doc:`form events </form/events>`, changes done
Expand Down
6 changes: 4 additions & 2 deletions components/http_foundation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,13 @@ of the ``anonymize()`` method to specify the number of bytes that should be
anonymized depending on the IP address format::

$ipv4 = '123.234.235.236';
$anonymousIpv4 = IpUtils::anonymize($ipv4, v4Bytes: 3);
$anonymousIpv4 = IpUtils::anonymize($ipv4, 3);
// $anonymousIpv4 = '123.0.0.0'

$ipv6 = '2a01:198:603:10:396e:4789:8e99:890f';
$anonymousIpv6 = IpUtils::anonymize($ipv6, v6Bytes: 10);
// (you must define the second argument (bytes to anonymize in IPv4 addresses)
// even when you are only anonymizing IPv6 addresses)
$anonymousIpv6 = IpUtils::anonymize($ipv6, 3, 10);
// $anonymousIpv6 = '2a01:198:603::'

.. versionadded:: 7.2
Expand Down
2 changes: 1 addition & 1 deletion components/http_kernel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ you will trigger the ``kernel.terminate`` event where you can perform certain
actions that you may have delayed in order to return the response as quickly
as possible to the client (e.g. sending emails).

.. caution::
.. warning::

Internally, the HttpKernel makes use of the :phpfunction:`fastcgi_finish_request`
PHP function. This means that at the moment, only the `PHP FPM`_ server
Expand Down
2 changes: 1 addition & 1 deletion components/ldap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ distinguished name (DN) and the password of a user::

$ldap->bind($dn, $password);

.. caution::
.. danger::

When the LDAP server allows unauthenticated binds, a blank password will always be valid.

Expand Down
Loading
Loading