antalaron/doctrine-twig-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Twig Doctrine 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.

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require antalaron/doctrine-twig-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

<?php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...

            new Antalaron\DoctrineTwigBundle\AntalaronDoctrineTwigBundle(),
        ];

        // ...
    }

    // ...
}