PHP Class Bitpay\Autoloader

Show file Open project: bitpay/php-client Class Usage Examples

Public Methods

Method 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 method

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

register() public static method

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 method

Unregister this autoloader
public static unregister ( )