File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -704,7 +704,7 @@ attribute::
704
704
705
705
It is common that a service accepts a closure with a specific signature.
706
706
In this case, you can use the
707
- :class: `Symfony\C omponent\D ependencyInjection\A ttribute\\ AutowireCallable ` attribute
707
+ :class: `Symfony\\ Component\\ DependencyInjection\ \ Attribute\\ AutowireCallable ` attribute
708
708
to generate a closure with the same signature as a specific method of a service. When
709
709
this closure is called, it will pass all its arguments to the underlying service
710
710
function. If the closure needs to be called more than once, the service instance
@@ -733,7 +733,7 @@ create extra instances of a non-shared service::
733
733
}
734
734
735
735
Finally, you can pass the ``lazy: true `` option to the
736
- :class: `Symfony\C omponent\D ependencyInjection\A ttribute\\ AutowireCallable `
736
+ :class: `Symfony\\ Component\\ DependencyInjection\ \ Attribute\\ AutowireCallable `
737
737
attribute. By doing so, the callable will automatically be lazy, which means
738
738
that the encapsulated service will be instantiated **only ** at the
739
739
closure's first call.
You can’t perform that action at this time.
0 commit comments