File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments