Skip to content

Commit a2da566

Browse files
committed
Minor tweak
1 parent 97ea1f2 commit a2da566

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

testing.rst

Lines 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)