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

Commit

Permalink
update init_autolaoder.php : added check if composer loader already h…
Browse files Browse the repository at this point in the history
…ave Zend lib, no need to add $loader->add("Zend", $zf2Path);
  • Loading branch information
samsonasik committed Mar 12, 2014
1 parent 45435b1 commit e1306d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init_autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
$zf2Path = get_cfg_var('zf2_path');
}

if ($zf2Path) {
if ($zf2Path && !class_exists('Zend\Loader\AutoloaderFactory')) {
if (isset($loader)) {
$loader->add('Zend', $zf2Path);
$loader->add('ZendXml', $zf2Path);
Expand Down

0 comments on commit e1306d6

Please sign in to comment.