19/01
2013
Displays what's in Twig (functions, filters, etc)
Displays what's in Twig., (*1)
Twig Relfection bundle provides commands for listing functions, filters, tests., (*2)
$ ./app/console twig:list:functions Function Extension asset($path, $packageName = NULL) assets assets_version($packageName = NULL) assets code($template) demo constant($const_name) core csrf_token() form cycle($values, $i) core date($date = NULL, $timezone = NULL) core dump() debug [...]
$ composer require alb/twig-reflection-bundle:*
Enable the bundle in the kernel:, (*3)
``` php <?php // app/AppKernel.php, (*4)
public function registerBundles() { $bundles = array( // ... new Alb\TwigReflectionBundle\AlbTwigReflectionBundle(), ); } ```, (*5)
Lists Twig functions with parameters and extensions, (*6)
Lists Twig filters with parameters and extensions, (*7)
Lists Twig tests with parameters and extensions, (*8)