12@trigger_error(
'The "Twig_Extensions_Autoloader" class is deprecated since version 1.5. Use Composer instead.', E_USER_DEPRECATED);
26 public static function register()
28 spl_autoload_register(array(
new self(),
'autoload'));
40 if (0 !== strpos($class,
'Twig_Extensions')) {
44 if (file_exists(
$file = __DIR__.
'/../../'.str_replace(
'_',
'/', $class).
'.php')) {
An exception for terminatinating execution or to throw for unit testing.
Autoloads Twig Extensions classes.
static autoload($class)
Handles autoloading of classes.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file