antalaron/doctrine-twig-bundle

此包已被弃用且不再维护。未建议替代包。

Twig Doctrine Bundle

安装: 16

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分叉: 0

开放问题: 1

类型:symfony-bundle

v1.0.1 2017-02-18 14:30 UTC

This package is auto-updated.

Last update: 2023-05-15 23:33:08 UTC


README

Build Status Latest Stable Version Latest Unstable Version

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(),
        ];

        // ...
    }

    // ...
}