antalaron / doctrine-twig-bundle
Twig Doctrine Bundle
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Type:symfony-bundle
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.
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(), ]; // ... } // ... }