Skip to content

Commit 3d6b7eb

Browse files
committed
Added a help note about glob patterns
1 parent 2be4c1d commit 3d6b7eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

service_container.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ each time you ask for it.
229229
// $this is a reference to the current loader
230230
$this->registerClasses($definition, 'AppBundle\\', '../../src/AppBundle/*', '../../src/AppBundle/{Entity,Repository}');
231231
232+
.. tip::
233+
234+
The value of the ``resource`` and ``exclude`` options can be any valid
235+
`glob pattern`_.
236+
232237
Thanks to this configuration, you can automatically use any classes from the
233238
``src/AppBundle`` directory as a service, without needing to manually configure
234239
it. Later, you'll learn more about this in :ref:`service-psr4-loader`.
@@ -1043,3 +1048,4 @@ Learn more
10431048

10441049
.. _`service-oriented architecture`: https://en.wikipedia.org/wiki/Service-oriented_architecture
10451050
.. _`Symfony Standard Edition (version 3.3) services.yml`: https://github.com/symfony/symfony-standard/blob/3.3/app/config/services.yml
1051+
.. _`glob pattern`: https://en.wikipedia.org/wiki/Glob_(programming)

0 commit comments

Comments
 (0)