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

Commit3dba331

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: Update shared.rst to add doc on PHP attributes
2 parentsfae286f +c81e2c6 commit3dba331

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎service_container/shared.rst‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ in your service definition:
1111

1212
..configuration-block::
1313

14+
..code-block::php-attributes
15+
16+
// src/SomeNonSharedService.php
17+
namespace App;
18+
19+
use Symfony\Component\DependencyInjection\Attribute\Autoconfigure;
20+
21+
#[Autoconfigure(shared: false)]
22+
class SomeNonSharedService
23+
{
24+
// ...
25+
}
26+
1427
..code-block::yaml
1528
1629
# config/services.yaml

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp