Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ For example, to inject the ``invoice`` package defined earlier::

When :ref:`dealing with multiple implementations of the same type <autowiring-multiple-implementations-same-type>`
the ``#[Target]`` attribute helps you select which one to inject. Symfony creates
a target called "asset package name" + ``.lock.factory`` suffix.
a target called ``lock.`` + "asset package name" + ``.factory``.

For example, to select the ``invoice`` lock defined earlier::

Expand All @@ -318,7 +318,7 @@ For example, to select the ``invoice`` lock defined earlier::
class SomeService
{
public function __construct(
#[Target('invoice.lock.factory')] private LockFactory $lockFactory
#[Target('lock.invoice.factory')] private LockFactory $lockFactory
): void {
// ...
}
Expand Down