12 @trigger_error(
'The Twig_Autoloader class is deprecated since version 1.21 and will be removed in 2.0. Use Composer instead.', E_USER_DEPRECATED);
28 public static function register($prepend =
false)
30 @trigger_error(
'Using Twig_Autoloader is deprecated since version 1.21. Use Composer instead.', E_USER_DEPRECATED);
32 if (PHP_VERSION_ID < 50300) {
33 spl_autoload_register(array(__CLASS__,
'autoload'));
35 spl_autoload_register(array(__CLASS__,
'autoload'),
true, $prepend);
46 if (0 !== strpos($class,
'Twig')) {
50 if (is_file($file = dirname(__FILE__).
'/../'.str_replace(array(
'_',
"\0"), array(
'/',
''), $class).
'.php')) {
static autoload($class)
Handles autoloading of classes.