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

Commit

Permalink
Merge branch 'master' of https://github.com/zendframework/zf2 into Ib…
Browse files Browse the repository at this point in the history
…anSepa
  • Loading branch information
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -489,22 +489,12 @@ public function canCreate($name, $checkAbstractFactories = true)
$cName = $this->canonicalizeName($rName);
}

$has = (
if (
isset($this->invokableClasses[$cName])
|| isset($this->factories[$cName])
|| isset($this->aliases[$cName])
|| isset($this->instances[$cName])
);

if ($has) {
return true;
}

if (isset($this->factories[$cName])) {
return true;
}

if (isset($this->invokableClasses[$cName])) {
) {
return true;
}

Expand Down

0 comments on commit fc52973

Please sign in to comment.