Skip to content

Commit 911dea3

Browse files
committed
Refine logic.
1 parent 911dfac commit 911dea3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

module/VuFind/src/VuFind/ServiceManager/AbstractPluginFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ abstract class AbstractPluginFactory implements AbstractFactoryInterface
6767
*/
6868
protected function getClassName($requestedName)
6969
{
70-
// If we have a FQCN that refers to an existing class, return it as-is:
71-
if ((null === $this->defaultNamespace || str_contains($requestedName, '\\')) && class_exists($requestedName)) {
70+
// If class name generation is disabled or we have a FQCN that refers to an existing class, return it as-is:
71+
if (null === $this->defaultNamespace || (str_contains($requestedName, '\\') && class_exists($requestedName))) {
7272
return $requestedName;
7373
}
7474
// First try the raw service name, then try a normalized version:

0 commit comments

Comments
 (0)