$className */ $className = $this->metadata->get(['authenticationMethods', $method, 'implementationClassName']); if (!$className) { $sanitizedName = preg_replace('/[^a-zA-Z0-9]+/', '', $method); /** @var class-string $className */ $className = "Espo\\Core\\Authentication\\Logins\\" . $sanitizedName; } return $this->injectableFactory->createWith($className, [ 'isPortal' => $isPortal, ]); } public function createDefault(): Login { $method = $this->configDataProvider->getDefaultAuthenticationMethod(); return $this->create($method); } }