tentwofour/symfony-twig-bridge
Composer 安装命令:
composer require tentwofour/symfony-twig-bridge
包简介
Symfony implementation of the tentwofour/twig package
README 文档
README
Bridge to provide Twig extensions (https://github.com/tentwofour/twig) into Symfony2.
Enable in AppKernel
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( ... new Ten24\SymfonyTwigBridgeBundle\Ten24SymfonyTwigBridgeBundle() ) ... } ... }
Usage
By default, the bundle registers all extensions from https://github.com/tentwofour/twig by default. See that bundle for extension documentation.
Any/all extensions can be disabled via bundle configuration:
# app/config.yml ten24_twig: email: false diff: false inflector: false money: false number: false
统计信息
- 总下载量: 168
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-04