diff --git a/module/fid/src/Controller/UserControllerFactory.php b/module/fid/src/Controller/UserControllerFactory.php
index 9b3e76a6a3fb7acced14ab98657e2e5267f3aebd..51297112b70d54c9084999a841c12625d977b51e 100644
--- a/module/fid/src/Controller/UserControllerFactory.php
+++ b/module/fid/src/Controller/UserControllerFactory.php
@@ -49,15 +49,17 @@ class UserControllerFactory
     /**
      * Invoke method for user controller
      *
-     * @param ContainerInterface|ServiceLocatorInterface $container Service container
+     * @param ContainerInterface $container     Service container
+     * @param string             $requestedName Name of the class to instantiate
+     *                                          (must inherit fid\Controller\UserController)
      *
      * @return UserController
      */
-    public function __invoke(ContainerInterface $container)
+    public function __invoke(ContainerInterface $container, $requestedName)
     {
         $client = $container->get(Client::class);
         $authManager = $container->get(AuthManager::class);
         $config = $container->get(ConfigManager::class)->get('fid')->toArray();
-        return new UserController($container, $authManager, $client, $config);
+        return new $requestedName($container, $authManager, $client, $config);
     }
 }