Skip to content
This repository was archived by the owner on Jan 1, 2020. It is now read-only.

Commit e1306d6

Browse files
committed
update init_autolaoder.php : added check if composer loader already have Zend lib, no need to add $loader->add("Zend", $zf2Path);
1 parent 45435b1 commit e1306d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init_autoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
$zf2Path = get_cfg_var('zf2_path');
3232
}
3333

34-
if ($zf2Path) {
34+
if ($zf2Path && !class_exists('Zend\Loader\AutoloaderFactory')) {
3535
if (isset($loader)) {
3636
$loader->add('Zend', $zf2Path);
3737
$loader->add('ZendXml', $zf2Path);

0 commit comments

Comments
 (0)