Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1f09911

Browse filesBrowse files
[FrameworkBundle] Allow setting private services with the test container
1 parent 740e44f commit 1f09911
Copy full SHA for 1f09911

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎testing.rst

Copy file name to clipboardExpand all lines: testing.rst
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,11 @@ the ``test`` environment as follows:
368368
;
369369
};
370370
371+
.. tip::
372+
373+
Setting the alias as public is not required anymore since Symfony 6.3. Private services
374+
can directly be set with the ``ContainerInterface::set`` method without further configuration.
375+
371376
.. _testing-databases:
372377

373378
Configuring a Database for Tests

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.