alb/twig-reflection-bundle
Composer 安装命令:
composer require alb/twig-reflection-bundle
包简介
Displays what's in Twig (functions, filters, etc)
README 文档
README
Displays what's in Twig.
Twig Relfection bundle provides commands for listing functions, filters, tests.
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:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Alb\TwigReflectionBundle\AlbTwigReflectionBundle(), ); }
Commands
twig:list:functions
Lists Twig functions with parameters and extensions
twig:list:filters
Lists Twig filters with parameters and extensions
twig:list:tests
Lists Twig tests with parameters and extensions
统计信息
- 总下载量: 2.5k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-09-21