Twig_Extension_Core is registration is hardcoded in to the Environment Extensions...
authorAd van der Veer <advanderveer@gmail.com>
Mon, 22 Feb 2010 15:38:17 +0000 (16:38 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Thu, 4 Mar 2010 09:24:30 +0000 (10:24 +0100)
lib/Twig/Environment.php

index 76eb3d7..7ec122c 100644 (file)
@@ -69,7 +69,7 @@ class Twig_Environment
     $this->charset            = isset($options['charset']) ? $options['charset'] : 'UTF-8';
     $this->baseTemplateClass  = isset($options['base_template_class']) ? $options['base_template_class'] : 'Twig_Template';
     $this->autoReload         = isset($options['auto_reload']) ? (bool) $options['auto_reload'] : $this->debug;
-    $this->extensions         = array(new Twig_Extension_Core());
+    $this->extensions         = array('core' => new Twig_Extension_Core());
     $this->runtimeInitialized = false;
     $this->setCache(isset($options['cache']) ? $options['cache'] : null);
   }