From b6050bf68810cf4ffa2ef63623a50feeb09c4244 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 22 May 2018 12:31:14 +0200 Subject: [PATCH] Mention that "exclude" option now accepts arrays too --- service_container.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/service_container.rst b/service_container.rst index 1c972f34076..11e3a7cd8c3 100644 --- a/service_container.rst +++ b/service_container.rst @@ -189,7 +189,12 @@ each time you ask for it. .. tip:: The value of the ``resource`` and ``exclude`` options can be any valid - `glob pattern`_. + `glob pattern`_. The value of the ``exclude`` option can also be an + array of glob patterns. + + .. versionadded:: 4.2 + The feature to pass arrays of glob patterns to the ``exclude`` + option was introduced in Symfony 4.2. Thanks to this configuration, you can automatically use any classes from the ``src/`` directory as a service, without needing to manually configure