We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b007665 + 72ea8fd commit c81e2c6Copy full SHA for c81e2c6
service_container/shared.rst
@@ -11,6 +11,19 @@ in your service definition:
11
12
.. configuration-block::
13
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
27
.. code-block:: yaml
28
29
# config/services.yaml
0 commit comments