File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ For example, to inject the ``invoice`` package defined earlier::
315315
316316When :ref: `dealing with multiple implementations of the same type <autowiring-multiple-implementations-same-type >`
317317the ``#[Target] `` attribute helps you select which one to inject. Symfony creates
318- a target called "asset package name" + ``.lock. factory `` suffix .
318+ a target called `` lock. `` + "asset package name" + ``.factory ``.
319319
320320For example, to select the ``invoice `` lock defined earlier::
321321
@@ -325,7 +325,7 @@ For example, to select the ``invoice`` lock defined earlier::
325325 class SomeService
326326 {
327327 public function __construct(
328- #[Target('invoice. lock.factory')] private LockFactory $lockFactory
328+ #[Target('lock.invoice .factory')] private LockFactory $lockFactory
329329 ): void {
330330 // ...
331331 }
You can’t perform that action at this time.
0 commit comments