antalaron / doctrine-twig-bundle
此包已被弃用且不再维护。未建议替代包。
Twig Doctrine Bundle
v1.0.1
2017-02-18 14:30 UTC
Requires
- php: >=5.5.9
- doctrine/doctrine-bundle: ^1.6
- doctrine/orm: ^2.5
- symfony/symfony: ~2.7|~3.0
Requires (Dev)
- phpunit/phpunit: <6.0.0
This package is auto-updated.
Last update: 2023-05-15 23:33:08 UTC
README
Doctrine Twig loader bundle for Symfony. This bundle allows you to store templates in database.
安装
步骤 1: 下载包
打开命令行,进入您的项目目录并执行以下命令以下载此包的最新稳定版本
$ composer require antalaron/doctrine-twig-bundle
此命令要求您已全局安装Composer,如Composer文档中的安装章节所述。
步骤 2: 启用包
然后,通过将其添加到项目中 app/AppKernel.php
文件中注册的包列表中来启用该包
<?php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // ... new Antalaron\DoctrineTwigBundle\AntalaronDoctrineTwigBundle(), ]; // ... } // ... }