diff --git a/src/AbstractPluginManager.php b/src/AbstractPluginManager.php index 48595f20..be9b476f 100644 --- a/src/AbstractPluginManager.php +++ b/src/AbstractPluginManager.php @@ -168,15 +168,6 @@ public function getServiceLocator() protected function createFromInvokable($canonicalName, $requestedName) { $invokable = $this->invokableClasses[$canonicalName]; - if (!class_exists($invokable)) { - throw new Exception\ServiceNotCreatedException(sprintf( - '%s: failed retrieving "%s%s" via invokable class "%s"; class does not exist', - __METHOD__, - $canonicalName, - ($requestedName ? '(alias: ' . $requestedName . ')' : ''), - $canonicalName - )); - } if (null === $this->creationOptions || (is_array($this->creationOptions) && empty($this->creationOptions))