schranz-templating / symfony-twig-integration
通过 Twig 模板引擎将模板渲染器集成到 symfony。
0.1.0
2022-09-17 15:53 UTC
Requires
- php: ^7.0 || ^8.0
- schranz-templating/twig-adapter: ^0.1
- symfony/config: ^4.4 || ^5.4 || ^6.0
- symfony/dependency-injection: ^4.4 || ^5.4 || ^6.0
- symfony/http-kernel: ^4.4 || ^5.4 || ^6.0
- symfony/twig-bundle: ^4.4 || ^5.4 || ^6.0
README
将模板适配器 Twig Adapter 集成到 Symfony 框架。
是 Schranz Templating 项目 的一部分。
安装
使用 Composer 安装此包
composer require schranz-templating/symfony-twig-integration
在您的 config/bundles.php
或 Kernel 文件中注册 Bundle 类
return [ // ... Schranz\Templating\Integration\Symfony\Twig\SchranzTemplatingTwigBundle::class => ['all' => true], ];
配置
当前 Twig 集成没有配置,因为 Symfony 默认支持 Twig,可以通过 Symfony Twig Bundle 进行配置。