Skip to content

Commit 3c52174

Browse files
committed
-
1 parent 076ea3d commit 3c52174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service_container/autowiring.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ attribute::
717717

718718
It is common that a service accepts a closure with a specific signature.
719719
In this case, you can use the
720-
:class:`Symfony\Component\DependencyInjection\Attribute\\AutowireCallable` attribute
720+
:class:`Symfony\\Component\\DependencyInjection\\Attribute\\AutowireCallable` attribute
721721
to generate a closure with the same signature as a specific method of a service. When
722722
this closure is called, it will pass all its arguments to the underlying service
723723
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::
746746
}
747747

748748
Finally, you can pass the ``lazy: true`` option to the
749-
:class:`Symfony\Component\DependencyInjection\Attribute\\AutowireCallable`
749+
:class:`Symfony\\Component\\DependencyInjection\\Attribute\\AutowireCallable`
750750
attribute. By doing so, the callable will automatically be lazy, which means
751751
that the encapsulated service will be instantiated **only** at the
752752
closure's first call.

0 commit comments

Comments
 (0)