Skip to content

Commit e568dd4

Browse files
authored
Update service_closures.rst
1 parent 9b79c0b commit e568dd4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

service_container/service_closures.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,15 @@ argument of type ``service_closure``:
4949
App\Service\MyService:
5050
arguments: [!service_closure '@mailer']
5151
52-
# A shorthand is available
53-
# arguments: ['@>mailer']
54-
5552
# In case the dependency is optional
5653
# arguments: [!service_closure '@?mailer']
5754
58-
# Using the shorthand
55+
.. versionadded:: 7.3
56+
57+
# A shorthand is available
58+
# arguments: ['@>mailer']
59+
60+
# It also works when the dependency is optional
5961
# arguments: ['@>?mailer']
6062

6163
.. code-block:: xml

0 commit comments

Comments
 (0)