Skip to content

Commit 68f6916

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: fix(documentation): reorder service id on target attribute
2 parents 8cd60b3 + f44e21d commit 68f6916

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lock.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ For example, to inject the ``invoice`` package defined earlier::
315315

316316
When :ref:`dealing with multiple implementations of the same type <autowiring-multiple-implementations-same-type>`
317317
the ``#[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

320320
For 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
}

0 commit comments

Comments
 (0)