File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -338,6 +338,13 @@ controller's service config:
338
338
You can of course also use normal :ref: `constructor injection <services-constructor-injection >`
339
339
in your controllers.
340
340
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
+
341
348
For more information about services, see the :doc: `/service_container ` article.
342
349
343
350
.. _controller-service-arguments-tag :
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ Assetic is a pure PHP library that helps to process & optimize your assets (simi
81
81
to Encore). Even though we recommend using Encore, Assetic still works great. For
82
82
a comparison, see :doc: `/frontend/encore/versus-assetic `.
83
83
84
- For more about Assetic, see :doc: `/assetic `.
84
+ For more about Assetic, see :doc: `/frontend/ assetic `.
85
85
86
86
Other Front-End Articles
87
87
------------------------
Original file line number Diff line number Diff line change 1
1
Encore Versus Assetic?
2
2
======================
3
3
4
- Symfony originally shipped with support for :doc: `Assetic </assetic >`: a
4
+ Symfony originally shipped with support for :doc: `Assetic </frontend/ assetic >`: a
5
5
pure PHP library capable of processing, combining and minifying CSS and JavaScript
6
6
files. And while Encore is now the recommended way of processing your assets, Assetic
7
7
still works well.
You can’t perform that action at this time.
0 commit comments