Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0bb20a5

Browse files
committed
minor #7101 Remove AssetsHelper from the templating component (alexpts)
This PR was squashed before being merged into the 3.1 branch (closes #7101). Discussion ---------- Remove AssetsHelper from the templating component > > deprecated since 2.7, will be removed in 3.0. Use the Asset component instead. Commits ------- 4a17054 Remove AssetsHelper from the templating component
2 parents 99045ab + 4a17054 commit 0bb20a5

File tree

2 files changed

+3
-135
lines changed

2 files changed

+3
-135
lines changed

components/templating.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,18 +139,17 @@ Helpers
139139

140140
The Templating component can be easily extended via helpers. Helpers are PHP objects that
141141
provide features useful in a template context. The component has
142-
2 built-in helpers:
142+
one built-in helper:
143143

144-
* :doc:`/components/templating/assetshelper`
145144
* :doc:`/components/templating/slotshelper`
146145

147146
Before you can use these helpers, you need to register them using
148147
:method:`Symfony\\Component\\Templating\\PhpEngine::set`::
149148

150-
use Symfony\Component\Templating\Helper\AssetsHelper;
149+
use Symfony\Component\Templating\Helper\SlotsHelper;
151150
// ...
152151

153-
$templating->set(new AssetsHelper());
152+
$templating->set(new SlotsHelper());
154153

155154
Custom Helpers
156155
~~~~~~~~~~~~~~

components/templating/assetshelper.rst

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)