Skip to content

Commit 9b79c0b

Browse files
authored
Documented the new @> shorthand
1 parent 2ccc964 commit 9b79c0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

service_container/service_closures.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +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+
5255
# In case the dependency is optional
5356
# arguments: [!service_closure '@?mailer']
5457
58+
# Using the shorthand
59+
# arguments: ['@>?mailer']
60+
5561
.. code-block:: xml
5662
5763
<!-- config/services.xml -->

0 commit comments

Comments
 (0)