Browse Source

Remove unneeded class_exists() check.

App::className() now always does that check.
ADmad 6 years ago
parent
commit
4f8b981a4e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Core/ObjectRegistry.php

+ 1 - 1
src/Core/ObjectRegistry.php

@@ -93,7 +93,7 @@ abstract class ObjectRegistry implements Countable, IteratorAggregate
         $className = $objectName;
         if (is_string($objectName)) {
             $className = $this->_resolveClassName($objectName);
-            if ($className === null || !class_exists($className)) {
+            if ($className === null) {
                 [$plugin, $objectName] = pluginSplit($objectName);
                 $this->_throwMissingClassError($objectName, $plugin);
             }