Skip to content

Commit 73a9ba4

Browse files
committed
Revert "Update .gitignore"
Add 'debug' alias to twig extensions, to match the debug helper.
1 parent 7c72744 commit 73a9ba4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Twig/Extension/Debug.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public function getFunctions()
4646
new Twig_SimpleFunction(
4747
'dump', [$this, 'dump'], array('needs_context' => true, 'needs_environment' => true)
4848
),
49+
new Twig_SimpleFunction(
50+
'debug', [$this, 'dump'], array('needs_context' => true, 'needs_environment' => true)
51+
),
4952
);
5053
}
5154

0 commit comments

Comments
 (0)