PHP Class Bitpay\Autoloader

Afficher le fichier Open project: bitpay/php-client Class Usage Examples

Méthodes publiques

Méthode Description
autoload ( string $class ) : boolean Give a class name and it will require the file.
register ( boolean $prepend = true ) Register the autoloader, by default this will put the BitPay autoloader first on the stack, to append the autoloader, pass false as an argument.
unregister ( ) Unregister this autoloader

Method Details

autoload() public static méthode

Give a class name and it will require the file.
public static autoload ( string $class ) : boolean
$class string
Résultat boolean

register() public static méthode

Some applications will throw exceptions if the class isn't found and some are not compatible with PSR standards.
public static register ( boolean $prepend = true )
$prepend boolean

unregister() public static méthode

Unregister this autoloader
public static unregister ( )