Skip to content
Snippets Groups Projects
Commit 68faa2d2 authored by Alexander Purr's avatar Alexander Purr Committed by Robert Lange
Browse files

refs #22318 [finc] makes RecordViewHelperFactory reusable in instances

parent ae1893d7
No related merge requests found
...@@ -64,7 +64,7 @@ class RecordViewHelperFactory implements FactoryInterface ...@@ -64,7 +64,7 @@ class RecordViewHelperFactory implements FactoryInterface
if (!empty($options)) { if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.'); throw new \Exception('Unexpected options sent to factory.');
} }
$recordViewHelper = new Record( $recordViewHelper = new $requestedName(
$container->get('VuFind\Config')->get('config'), $container->get('VuFind\Config')->get('config'),
$container->get('ViewHelperManager')->get('url'), $container->get('ViewHelperManager')->get('url'),
$container->get('VuFind\AuthManager'), $container->get('VuFind\AuthManager'),
......
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