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 a2da566

Browse filesBrowse files
committed
Minor tweak
1 parent 97ea1f2 commit a2da566
Copy full SHA for a2da566

File tree

1 file changed

+2
-3
lines changed
Filter options

1 file changed

+2
-3
lines changed

‎testing.rst

Copy file name to clipboardExpand all lines: testing.rst
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ concrete one::
311311
])
312312
;
313313

314-
// the following line won't work unless the alias is made public
315314
$container->set(NewsRepositoryInterface::class, $newsRepository);
316315

317316
// will be injected the mocked repository
@@ -326,8 +325,8 @@ that allows you to interact with private services and aliases.
326325

327326
.. versionadded:: 6.3
328327

329-
The possibility to set a private service with the test service container without
330-
declaring the alias as public was introduced in Symfony 6.3.
328+
The possibility to set a private service with the test service container
329+
without declaring a public alias for it was introduced in Symfony 6.3.
331330

332331
.. _testing-databases:
333332

0 commit comments

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