Skip to content

Commit 8b0472d

Browse files
committed
Autoloader Options
Add the ability to set the autoloader options.
1 parent 09a143f commit 8b0472d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpWord/Autoloader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class Autoloader
3030
*
3131
* @return void
3232
*/
33-
public static function register()
33+
public static function register($throw = true, $prepend = false)
3434
{
35-
spl_autoload_register(array(new self, 'autoload'));
35+
spl_autoload_register(array(new self, 'autoload'), $throw, $prepend);
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)