Skip to content

Commit 8ffcfca

Browse files
committed
minor #9802 Mention that "exclude" option now accepts arrays too (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Mention that "exclude" option now accepts arrays too This fixes #9758. I propose to not display a full config example of this feature because it's an edge-case unneeded in most apps and the example would make this article even longer (and it's already super long). Commits ------- b6050bf Mention that "exclude" option now accepts arrays too
2 parents 40b2067 + b6050bf commit 8ffcfca

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)