Skip to content

Commit 821e0a5

Browse files
committed
Tweak
1 parent 7a9b50e commit 821e0a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samples/Sample_45_Autoloader.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
use PhpOffice\PhpWord\Style\Font;
44

5-
//define('USE_AUTOLOADER', true);
5+
// When following define is TRUE,
6+
// this script will use PhpWord autoloader rather than Composer,
7+
// and will not be able to find Pdf renderer.
8+
define('USE_AUTOLOADER', PHP_MINOR_VERSION % 2 === 0);
69

710
include_once 'Sample_Header.php';
811

0 commit comments

Comments
 (0)