@@ -843,9 +843,9 @@ key. For example, the default Symfony configuration contains this:
843843
844844 # the namespace prefix for classes (must end in \)
845845 AppBundle\ :
846- # accepts a glob pattern
846+ # create services for all the classes found in this directory...
847847 resource : ' ../../src/AppBundle/*'
848- # exclude some paths
848+ # ...except for the classes located in these directories
849849 exclude : ' ../../src/AppBundle/{Entity,Repository}'
850850
851851 # these were imported above, but we want to add some extra config
@@ -900,6 +900,11 @@ key. For example, the default Symfony configuration contains this:
900900 // $this is a reference to the current loader
901901 $this->registerClasses($definition, 'AppBundle\\Controller\\', '../../src/AppBundle/Controller/*');
902902
903+ .. tip ::
904+
905+ The value of the ``resource `` and ``exclude `` options can be any valid
906+ `glob pattern `_.
907+
903908This can be used to quickly make many classes available as services and apply some
904909default configuration. The ``id `` of each service is its fully-qualified class name.
905910You can override any service that's imported by using its id (class name) below
@@ -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