Skip to content

Commit af00dbc

Browse files
authored
adding version note about scalar bind args
1 parent 4312518 commit af00dbc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

controller.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ the argument by its name:
284284
You can of course also use normal :ref:`constructor injection <services-constructor-injection>`
285285
in your controllers.
286286

287+
.. versionadded:: 4.1
288+
The ability to bind scalar values to controller arguments was introduced in
289+
Symfony 4.1. Previously you could only bind services.
290+
287291
For more information about services, see the :doc:`/service_container` article.
288292

289293
.. index::

0 commit comments

Comments
 (0)