From 8b0472dd528f5ab236a5a5b1b3e0cab55920cdec Mon Sep 17 00:00:00 2001 From: Brandon Skrtich Date: Fri, 6 Jun 2014 13:34:01 -0600 Subject: [PATCH] Autoloader Options Add the ability to set the autoloader options. --- src/PhpWord/Autoloader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PhpWord/Autoloader.php b/src/PhpWord/Autoloader.php index c467f836..d7e154bb 100644 --- a/src/PhpWord/Autoloader.php +++ b/src/PhpWord/Autoloader.php @@ -30,9 +30,9 @@ class Autoloader * * @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); } /**