https://github.com/PHPOffice/PHPWord/issues/58 - autoloading fix.
This commit is contained in:
parent
667d0aaad1
commit
9c6d07aaeb
|
|
@ -25,7 +25,7 @@
|
|||
* @version 0.8.0
|
||||
*/
|
||||
|
||||
namespace PhpOffice\PhpWord\Autoloader;
|
||||
namespace PhpOffice\PhpWord;
|
||||
|
||||
if (!\defined('PHPWORD_BASE_DIR')) {
|
||||
\define('PHPWORD_BASE_DIR', \realpath(__DIR__) . \DIRECTORY_SEPARATOR);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ use PhpOffice\PhpWord\Template;
|
|||
if (!defined('PHPWORD_BASE_DIR')) {
|
||||
define('PHPWORD_BASE_DIR', \realpath(__DIR__) . \DIRECTORY_SEPARATOR);
|
||||
require \PHPWORD_BASE_DIR . 'Autoloader.php';
|
||||
PhpOffice\PhpWord\Autoloader::register();
|
||||
Autoloader::register();
|
||||
}
|
||||
// @codeCoverageIgnoreEnd
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue