Browse Source

Explicitly enable twig for fortunes

Hamilton Turner 10 years ago
parent
commit
2f2d00b96c

+ 1 - 0
frameworks/PHP/php-symfony2-stripped/app/AppKernel.php

@@ -10,6 +10,7 @@ class AppKernel extends Kernel
         $bundles = array(
             new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
             new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
+            new Symfony\Bundle\TwigBundle\TwigBundle(),
             new Skamander\BenchmarkBundle\SkamanderBenchmarkBundle(),
         );
 

+ 1 - 1
frameworks/PHP/php-symfony2-stripped/app/config/config.yml

@@ -13,7 +13,7 @@ framework:
     csrf_protection: ~
     validation:      { enable_annotations: true }
     templating:
-        engines: ['php']
+        engines: ['twig', 'php']
         #assets_version: SomeVersionScheme
     default_locale:  "%locale%"
     trusted_proxies: ~

+ 2 - 1
frameworks/PHP/php-symfony2-stripped/composer.json

@@ -9,7 +9,8 @@
         "symfony/symfony": "2.3.*",
         "doctrine/orm": ">=2.2.3,<2.4-dev",
         "doctrine/doctrine-bundle": "1.2.*",
-        "sensio/distribution-bundle": "2.2.*"
+        "sensio/distribution-bundle": "2.2.*",
+        "twig/extensions": "1.0.*"
     },
     "scripts": {
         "post-install-cmd": [

+ 48 - 1
frameworks/PHP/php-symfony2-stripped/composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "hash": "9ee1818d7db2f8fb0ebd5f6c26a6ece7",
+    "hash": "62c2bb42d93ce084eb196edc767b94ec",
     "packages": [
         {
             "name": "doctrine/annotations",
@@ -855,6 +855,53 @@
             ],
             "time": "2014-12-03 12:04:45"
         },
+        {
+            "name": "twig/extensions",
+            "version": "v1.0.1",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/twigphp/Twig-extensions.git",
+                "reference": "f91a82ec225e5bb108e01a0f93c9be04f84dcfa0"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/twigphp/Twig-extensions/zipball/f91a82ec225e5bb108e01a0f93c9be04f84dcfa0",
+                "reference": "f91a82ec225e5bb108e01a0f93c9be04f84dcfa0",
+                "shasum": ""
+            },
+            "require": {
+                "twig/twig": "~1.0"
+            },
+            "type": "library",
+            "extra": {
+                "branch-alias": {
+                    "dev-master": "1.0.x-dev"
+                }
+            },
+            "autoload": {
+                "psr-0": {
+                    "Twig_Extensions_": "lib/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Fabien Potencier",
+                    "email": "[email protected]"
+                }
+            ],
+            "description": "Common additional features for Twig that do not directly belong in core",
+            "homepage": "https://github.com/fabpot/Twig-extensions",
+            "keywords": [
+                "debug",
+                "i18n",
+                "text"
+            ],
+            "time": "2013-10-18 19:37:15"
+        },
         {
             "name": "twig/twig",
             "version": "v1.16.2",