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

Commit717547b

Browse files
author
Thomas Talbot
committed
Remove caution section about bind scalar controller arguments
1 parent14cad70 commit717547b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

‎controller.rst‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,6 @@ the argument by its name:
277277
Like with all services, you can also use regular:ref:`constructor injection<services-constructor-injection>`
278278
in your controllers.
279279

280-
..caution::
281-
282-
You can *only* pass *services* to your controller arguments in this way. It's not
283-
possible, for example, to pass a config parameter as a controller argument,
284-
even by using ``bind``. If you need a parameter, use the ``$this->getParameter('kernel.debug')``
285-
shortcut or pass the value through your controller's ``__construct()`` method
286-
and specify its value with ``bind``.
287-
288280
For more information about services, see the:doc:`/service_container` article.
289281

290282
Generating Controllers

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp