Autoloader Options
Add the ability to set the autoloader options.
This commit is contained in:
parent
09a143fe71
commit
8b0472dd52
@ -30,9 +30,9 @@ class Autoloader
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function register()
|
public static function register($throw = true, $prepend = false)
|
||||||
{
|
{
|
||||||
spl_autoload_register(array(new self, 'autoload'));
|
spl_autoload_register(array(new self, 'autoload'), $throw, $prepend);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user