Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit70716ab

Browse files
authored
Update service_container.rst to 7.3
1 parent11b2569 commit70716ab

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

‎service_container.rst

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
<prototypenamespace="App\"resource="../src/"exclude="../src/{DependencyInjection,Entity,Kernel.php}"/>
186+
<prototypenamespace="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

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp