From 7693c725388febb8ed32a401e82f809f4d1c4d1a Mon Sep 17 00:00:00 2001
From: Ere Maijala <ere.maijala@helsinki.fi>
Date: Fri, 17 Aug 2018 14:33:23 +0300
Subject: [PATCH] Fix ILSAuthenticatorFactory to create the proxy for the
 requested class.

---
 module/VuFind/src/VuFind/Auth/ILSAuthenticatorFactory.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/VuFind/src/VuFind/Auth/ILSAuthenticatorFactory.php b/module/VuFind/src/VuFind/Auth/ILSAuthenticatorFactory.php
index e5a40c00ba5..68c7f1faa35 100644
--- a/module/VuFind/src/VuFind/Auth/ILSAuthenticatorFactory.php
+++ b/module/VuFind/src/VuFind/Auth/ILSAuthenticatorFactory.php
@@ -77,6 +77,6 @@ class ILSAuthenticatorFactory implements FactoryInterface
         };
         $cfg = $container->get('ProxyManager\Configuration');
         $factory = new \ProxyManager\Factory\LazyLoadingValueHolderFactory($cfg);
-        return $factory->createProxy('VuFind\Auth\ILSAuthenticator', $callback);
+        return $factory->createProxy($requestedName, $callback);
     }
 }
-- 
GitLab