Class Twig_Autoloader

InheritanceTwig_Autoloader
Deprecated since version since 1.21 and will be removed in 2.0. Use Composer instead. 2.0.

Autoloads Twig classes.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
autoload() Handles autoloading of classes. Twig_Autoloader
register() Registers Twig_Autoloader as an SPL autoloader. Twig_Autoloader

Method Details

autoload() public static method

Handles autoloading of classes.

public static void autoload ( $class )
$class string

A class name.

register() public static method

Registers Twig_Autoloader as an SPL autoloader.

public static void register ( $prepend false )
$prepend bool

Whether to prepend the autoloader or not.