Browse Source

move twig debug config to separate file, only load in dev env

Igor Wiedler 13 years ago
parent
commit
74c7bfa569
3 changed files with 6 additions and 10 deletions
  1. 0 10
      app/config/config.yml
  2. 1 0
      app/config/config_dev.yml
  3. 5 0
      app/config/twig_dev.yml

+ 0 - 10
app/config/config.yml

@@ -66,13 +66,3 @@ fos_user:
 
 nelmio_solarium:
     adapter: ~
-
-services:
-    twig.extension.text:
-        class: Twig_Extensions_Extension_Text
-        tags:
-            - { name: twig.extension }
-    twig.extension.debug:
-        class: Twig_Extensions_Extension_Debug
-        tags:
-            - { name: twig.extension }

+ 1 - 0
app/config/config_dev.yml

@@ -1,5 +1,6 @@
 imports:
     - { resource: config.yml }
+    - { resource: twig_dev.yml }
 
 framework:
     router:   { resource: "%kernel.root_dir%/config/routing_dev.yml" }

+ 5 - 0
app/config/twig_dev.yml

@@ -0,0 +1,5 @@
+services:
+    twig.extension.debug:
+        class: Twig_Extensions_Extension_Debug
+        tags:
+            - { name: twig.extension }