Skip to content

Commit 443a0b8

Browse files
committed
Merge pull request zendframework#248 from samsonasik/autoloader
update init_autoloader.php : added check if composer $loader already have Zend lib
2 parents 97d5f41 + e1306d6 commit 443a0b8

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)