From 4f5b44bd3bd490309eb2ba7b44df4769816ba729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 3 Aug 2013 19:26:54 +0200 Subject: twig implementation --- inc/3rdparty/Twig/Autoloader.php | 48 ---------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 inc/3rdparty/Twig/Autoloader.php (limited to 'inc/3rdparty/Twig/Autoloader.php') diff --git a/inc/3rdparty/Twig/Autoloader.php b/inc/3rdparty/Twig/Autoloader.php deleted file mode 100644 index 7007d315..00000000 --- a/inc/3rdparty/Twig/Autoloader.php +++ /dev/null @@ -1,48 +0,0 @@ - - */ -class Twig_Autoloader -{ - /** - * Registers Twig_Autoloader as an SPL autoloader. - * - * @param Boolean $prepend Whether to prepend the autoloader or not. - */ - public static function register($prepend = false) - { - if (version_compare(phpversion(), '5.3.0', '>=')) { - spl_autoload_register(array(new self, 'autoload'), true, $prepend); - } else { - spl_autoload_register(array(new self, 'autoload')); - } - } - - /** - * Handles autoloading of classes. - * - * @param string $class A class name. - */ - public static function autoload($class) - { - if (0 !== strpos($class, 'Twig')) { - return; - } - - if (is_file($file = dirname(__FILE__).'/../'.str_replace(array('_', "\0"), array('/', ''), $class).'.php')) { - require $file; - } - } -} -- cgit v1.2.3