Skip to content

Commit 1bf16f6

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [DependencyInjection] Mention autoconfiguration through attributes [Panther] Add component documentation
2 parents 7fcd82d + adc7a4b commit 1bf16f6

File tree

4 files changed

+849
-7
lines changed

4 files changed

+849
-7
lines changed

.doctor-rst.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ whitelist:
111111
- '.. versionadded:: 3.6' # MonologBundle
112112
- '.. versionadded:: 3.8' # MonologBundle
113113
- '.. _`a feature to test applications using Mercure`: https://github.com/symfony/panther#creating-isolated-browsers-to-test-apps-using-mercure-or-websocket'
114-
- '.. End to End Tests (E2E)'
114+
- 'End to End Tests (E2E)'

service_container.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,17 @@ you don't need to do *anything*: the service will be automatically loaded. Then,
10271027
implements ``Twig\Extension\ExtensionInterface``. And thanks to ``autowire``, you can even add
10281028
constructor arguments without any configuration.
10291029

1030+
Autconfiguration also works with attributes. Some attributes like
1031+
:class:`Symfony\\Component\\Messenger\\Attribute\\AsMessageHandler`,
1032+
:class:`Symfony\\Component\\EventDispatcher\\Attribute\\AsEventListener` and
1033+
:class:`Symfony\\Component\\Console\\Attribute\\AsCommand` are registered
1034+
for autoconfiguration. Any class using these attributes will have tags applied
1035+
to them.
1036+
1037+
.. versionadded:: 5.3
1038+
1039+
Autoconfiguration through attributes was introduced in Symfony 5.3.
1040+
10301041
Linting Service Definitions
10311042
---------------------------
10321043

testing.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,12 +1128,15 @@ HttpClient Assertions
11281128
By default it will check on the HttpClient, but you can also pass a specific
11291129
HttpClient ID.
11301130

1131-
.. TODO
1132-
.. End to End Tests (E2E)
1133-
.. ----------------------
1134-
.. * panther
1135-
.. * testing javascript
1136-
.. * UX or form collections as example?
1131+
End to End Tests (E2E)
1132+
~~~~~~~~~~~~~~~~~~~~~~
1133+
1134+
If you need to test the application as a whole, including the JavaScript
1135+
code, you can use a real browser instead of the test client. This is
1136+
called an end-to-end test and it's a great way to test the application.
1137+
1138+
This can be achieved thanks to the Panther component. You can learn more
1139+
about it in :doc:`the dedicated page </testing/end_to_end>`.
11371140

11381141
Learn more
11391142
----------

0 commit comments

Comments
 (0)