@@ -162,10 +162,6 @@ each time you ask for it.
162162 # this creates a service per class whose id is the fully-qualified class name
163163 App\ :
164164 resource : ' ../src/'
165- exclude :
166- - ' ../src/DependencyInjection/'
167- - ' ../src/Entity/'
168- - ' ../src/Kernel.php'
169165
170166 # order is important in this file because service definitions
171167 # always *replace* previous ones; add your own service configuration below
@@ -187,7 +183,7 @@ each time you ask for it.
187183
188184 <!-- makes classes in src/ available to be used as services -->
189185 <!-- this creates a service per class whose id is the fully-qualified class name -->
190- <prototype namespace =" App\" resource =" ../src/" exclude = " ../src/{DependencyInjection,Entity,Kernel.php} " />
186+ <prototype namespace =" App\" resource =" ../src/" />
191187
192188 <!-- order is important in this file because service definitions
193189 always *replace* previous ones; add your own service configuration below -->
@@ -212,18 +208,15 @@ each time you ask for it.
212208
213209 // makes classes in src/ available to be used as services
214210 // this creates a service per class whose id is the fully-qualified class name
215- $services->load('App\\', '../src/')
216- ->exclude('../src/{DependencyInjection,Entity,Kernel.php}');
211+ $services->load('App\\', '../src/');
217212
218213 // order is important in this file because service definitions
219214 // always *replace* previous ones; add your own service configuration below
220215 };
221216
222217 .. tip ::
223218
224- The value of the ``resource `` and ``exclude `` options can be any valid
225- `glob pattern `_. The value of the ``exclude `` option can also be an
226- array of glob patterns.
219+ The value of the ``resource `` option can be any valid `glob pattern `_.
227220
228221 Thanks to this configuration, you can automatically use any classes from the
229222 ``src/ `` directory as a service, without needing to manually configure
0 commit comments