Skip to content
Snippets Groups Projects
Twig.php 567 B
Newer Older
<?php defined('SYSPATH') or die('No direct script access.');

class Twig extends Kohana_Twig
{
    public static function factory($file = NULL, array $data = NULL) {
        $twig = parent::factory($file, $data);
        $twig->HTML = new HTML;
        $twig->Date = new Date;
        $twig->URL = new URL;
        $twig->UTF8 = new UTF8;
        $twig->Text = new Text;
        $twig->Arr = new Arr;
        $twig->Inflector = new Inflector;
        $twig->System = array('Title' => ASSEMBLY_SYSTEM_NAME, 'Version' => ASSEMBLY_VERSION);
        return $twig;
    }
}