Skip to content

Commit b6050bf

Browse files
committed
Mention that "exclude" option now accepts arrays too
1 parent 40b2067 commit b6050bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

service_container.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,12 @@ each time you ask for it.
189189
.. tip::
190190

191191
The value of the ``resource`` and ``exclude`` options can be any valid
192-
`glob pattern`_.
192+
`glob pattern`_. The value of the ``exclude`` option can also be an
193+
array of glob patterns.
194+
195+
.. versionadded:: 4.2
196+
The feature to pass arrays of glob patterns to the ``exclude``
197+
option was introduced in Symfony 4.2.
193198

194199
Thanks to this configuration, you can automatically use any classes from the
195200
``src/`` directory as a service, without needing to manually configure

0 commit comments

Comments
 (0)