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')) {
Autoloads Twig Extensions classes.
Create styles array
The data for the language used.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
static autoload($class)
Handles autoloading of classes.