Skip to content

Commit b3a3905

Browse files
Minor reword
1 parent 7f1c584 commit b3a3905

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

service_container/service_subscribers_locators.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,10 @@ Now you can use the service locator by injecting it in any other service:
349349
->setArguments(array(new Reference('app.command_handler_locator')))
350350
;
351351
352-
When inside :doc:`/service_container/compiler_passes`, using the
353-
:method:`Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass::register`
354-
method is the recommended way to create locators for your services. This will save
355-
you some boilerplate and will automatically share identical locators amongst all the
356-
services referencing them::
352+
In :doc:`compiler passes </service_container/compiler_passes>` it's recommended
353+
to use the :method:`Symfony\\Component\\DependencyInjection\\Compiler\\ServiceLocatorTagPass::register`
354+
method to create the service locators. This will save you some boilerplate and
355+
will share identical locators amongst all the services referencing them::
357356

358357
use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
359358
use Symfony\Component\DependencyInjection\ContainerBuilder;

0 commit comments

Comments
 (0)