2017 © Pedro Peláez
 

library twig-reflection-bundle

Displays what's in Twig (functions, filters, etc)

image

alb/twig-reflection-bundle

Displays what's in Twig (functions, filters, etc)

  • Saturday, January 19, 2013
  • by arnaud-lb
  • Repository
  • 3 Watchers
  • 16 Stars
  • 2,481 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Twig Reflection Bundle

Displays what's in Twig., (*1)

Twig Relfection bundle provides commands for listing functions, filters, tests., (*2)

Example

$ ./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
[...]

Install

$ composer require alb/twig-reflection-bundle:*

Enable the bundle

Enable the bundle in the kernel:, (*3)

``` php <?php // app/AppKernel.php, (*4)

public function registerBundles() { $bundles = array( // ... new Alb\TwigReflectionBundle\AlbTwigReflectionBundle(), ); } ```, (*5)

Commands

twig:list:functions

Lists Twig functions with parameters and extensions, (*6)

twig:list:filters

Lists Twig filters with parameters and extensions, (*7)

twig:list:tests

Lists Twig tests with parameters and extensions, (*8)

The Versions

19/01 2013

dev-master

9999999-dev

Displays what's in Twig (functions, filters, etc)

  Sources   Download

MIT

by Arnaud Le Blanc

19/01 2013

0.1.0

0.1.0.0

Displays what's in Twig (functions, filters, etc)

  Sources   Download

MIT

by Arnaud Le Blanc