Skip to content

Commit 6ab2689

Browse files
committed
Merge branch '3.4'
* 3.4: fixing build Adding warning about non-service arguments
2 parents 27659d5 + 3e1948f commit 6ab2689

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

controller.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,13 @@ controller's service config:
338338
You can of course also use normal :ref:`constructor injection <services-constructor-injection>`
339339
in your controllers.
340340

341+
.. caution::
342+
343+
You can *only* pass *services* to your controller arguments in this way. It's
344+
not possible, for example, to pass a service parameter as a controller argument.
345+
If you need a parameter, use the ``$this->getParameter('kernel.debug')`` shortcut
346+
or pass the value through your controller's ``__construct()`` method.
347+
341348
For more information about services, see the :doc:`/service_container` article.
342349

343350
.. _controller-service-arguments-tag:

frontend.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Assetic is a pure PHP library that helps to process & optimize your assets (simi
8181
to Encore). Even though we recommend using Encore, Assetic still works great. For
8282
a comparison, see :doc:`/frontend/encore/versus-assetic`.
8383

84-
For more about Assetic, see :doc:`/assetic`.
84+
For more about Assetic, see :doc:`/frontend/assetic`.
8585

8686
Other Front-End Articles
8787
------------------------

frontend/encore/versus-assetic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Encore Versus Assetic?
22
======================
33

4-
Symfony originally shipped with support for :doc:`Assetic </assetic>`: a
4+
Symfony originally shipped with support for :doc:`Assetic </frontend/assetic>`: a
55
pure PHP library capable of processing, combining and minifying CSS and JavaScript
66
files. And while Encore is now the recommended way of processing your assets, Assetic
77
still works well.

0 commit comments

Comments
 (0)