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 8af938e + ecc1b56 commit 72ea8fdCopy full SHA for 72ea8fd
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