File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -717,7 +717,7 @@ attribute::
717
717
718
718
It is common that a service accepts a closure with a specific signature.
719
719
In this case, you can use the
720
- :class: `Symfony\C omponent\D ependencyInjection\A ttribute\\ AutowireCallable ` attribute
720
+ :class: `Symfony\\ Component\\ DependencyInjection\ \ Attribute\\ AutowireCallable ` attribute
721
721
to generate a closure with the same signature as a specific method of a service. When
722
722
this closure is called, it will pass all its arguments to the underlying service
723
723
function. If the closure needs to be called more than once, the service instance
@@ -746,7 +746,7 @@ create extra instances of a non-shared service::
746
746
}
747
747
748
748
Finally, you can pass the ``lazy: true `` option to the
749
- :class: `Symfony\C omponent\D ependencyInjection\A ttribute\\ AutowireCallable `
749
+ :class: `Symfony\\ Component\\ DependencyInjection\ \ Attribute\\ AutowireCallable `
750
750
attribute. By doing so, the callable will automatically be lazy, which means
751
751
that the encapsulated service will be instantiated **only ** at the
752
752
closure's first call.
You can’t perform that action at this time.
0 commit comments