Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Lock] fix(documentation): reorder service id on target attribute#21531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:6.4fromLaurentQ56:patch-1
Oct 27, 2025
Merged
Changes fromall 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 deletionslock.rst
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp