Skip to content
Snippets Groups Projects
Commit 0d2703f9 authored by Dorian Merz's avatar Dorian Merz Committed by Robert Lange
Browse files

refs #19209 [fid] make MyResearchControllerFactory more generic

* can now produce objects from sub class of fid's MyResearchController
parent be52c300
No related merge requests found
......@@ -39,11 +39,11 @@ class MyResearchControllerFactory
return null;
}
public function __invoke(ContainerInterface $container)
public function __invoke(ContainerInterface $container, $requested_name)
{
/** @var ServiceManager $serviceManager */
$serviceManager = $container->get(ServiceManager::class);
$controller = new MyResearchController($serviceManager);
$controller = new $requested_name($serviceManager);
$controller->setFidClient($container->get(Client::class));
return $controller;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment