File tree Expand file tree Collapse file tree 2 files changed +3
-135
lines changed Expand file tree Collapse file tree 2 files changed +3
-135
lines changed Original file line number Diff line number Diff line change @@ -139,18 +139,17 @@ Helpers
139
139
140
140
The Templating component can be easily extended via helpers. Helpers are PHP objects that
141
141
provide features useful in a template context. The component has
142
- 2 built-in helpers :
142
+ one built-in helper :
143
143
144
- * :doc: `/components/templating/assetshelper `
145
144
* :doc: `/components/templating/slotshelper `
146
145
147
146
Before you can use these helpers, you need to register them using
148
147
:method: `Symfony\\ Component\\ Templating\\ PhpEngine::set `::
149
148
150
- use Symfony\Component\Templating\Helper\AssetsHelper ;
149
+ use Symfony\Component\Templating\Helper\SlotsHelper ;
151
150
// ...
152
151
153
- $templating->set(new AssetsHelper ());
152
+ $templating->set(new SlotsHelper ());
154
153
155
154
Custom Helpers
156
155
~~~~~~~~~~~~~~
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments