This commit is contained in:
Roman Syroeshko 2014-03-22 15:32:02 +04:00
parent 667d0aaad1
commit 9c6d07aaeb
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
* @version 0.8.0 * @version 0.8.0
*/ */
namespace PhpOffice\PhpWord\Autoloader; namespace PhpOffice\PhpWord;
if (!\defined('PHPWORD_BASE_DIR')) { if (!\defined('PHPWORD_BASE_DIR')) {
\define('PHPWORD_BASE_DIR', \realpath(__DIR__) . \DIRECTORY_SEPARATOR); \define('PHPWORD_BASE_DIR', \realpath(__DIR__) . \DIRECTORY_SEPARATOR);

View File

@ -37,7 +37,7 @@ use PhpOffice\PhpWord\Template;
if (!defined('PHPWORD_BASE_DIR')) { if (!defined('PHPWORD_BASE_DIR')) {
define('PHPWORD_BASE_DIR', \realpath(__DIR__) . \DIRECTORY_SEPARATOR); define('PHPWORD_BASE_DIR', \realpath(__DIR__) . \DIRECTORY_SEPARATOR);
require \PHPWORD_BASE_DIR . 'Autoloader.php'; require \PHPWORD_BASE_DIR . 'Autoloader.php';
PhpOffice\PhpWord\Autoloader::register(); Autoloader::register();
} }
// @codeCoverageIgnoreEnd // @codeCoverageIgnoreEnd