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

Commit

Permalink
Merge branch 'zendStudioDLTKProblems' of https://github.com/marc-mabe…
Browse files Browse the repository at this point in the history
…/zf2 into hotfix/coding-standards

Conflicts:
	library/Zend/Mvc/Controller/ActionController.php
	library/Zend/Mvc/Controller/RestfulController.php
  • Loading branch information
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/ModuleAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,13 @@ public function autoload($class)

$moduleName = substr($class, 0, -7);
if (isset($this->explicitPaths[$moduleName])) {
if ($classLoaded = $this->loadModuleFromDir($this->explicitPaths[$moduleName], $class)) {
$classLoaded = $this->loadModuleFromDir($this->explicitPaths[$moduleName], $class);
if ($classLoaded) {
return $classLoaded;
} elseif ($classLoaded = $this->loadModuleFromPhar($this->explicitPaths[$moduleName], $class)) {
}

$classLoaded = $this->loadModuleFromPhar($this->explicitPaths[$moduleName], $class);
if ($classLoaded) {
return $classLoaded;
}
}
Expand All @@ -119,7 +123,9 @@ public function autoload($class)

foreach ($this->paths as $path) {
$path = $path . $moduleClassPath;
if ($classLoaded = $this->loadModuleFromDir($path, $class)) {

$classLoaded = $this->loadModuleFromDir($path, $class);
if ($classLoaded) {
return $classLoaded;
}

Expand All @@ -134,7 +140,8 @@ public function autoload($class)
continue;
}

if ($classLoaded = $this->loadModuleFromPhar($entry->getPathname(), $class)) {
$classLoaded = $this->loadModuleFromPhar($entry->getPathname(), $class);
if ($classLoaded) {
return $classLoaded;
}
}
Expand Down

0 comments on commit ec2ac23

Please sign in to comment.