Skip to content
Snippets Groups Projects
Commit 1ad4b2a9 authored by Demian Katz's avatar Demian Katz
Browse files

Validate options.

parent f508f60d
No related merge requests found
...@@ -58,6 +58,9 @@ class AbstractSyndeticsFactory implements FactoryInterface ...@@ -58,6 +58,9 @@ class AbstractSyndeticsFactory implements FactoryInterface
public function __invoke(ContainerInterface $container, $requestedName, public function __invoke(ContainerInterface $container, $requestedName,
array $options = null array $options = null
) { ) {
if ($options !== null) {
throw new \Exception('Unexpected options sent to factory!');
}
$config = $container->get('VuFind\Config\PluginManager')->get('config'); $config = $container->get('VuFind\Config\PluginManager')->get('config');
// Special case: if the class name ends in Plus, we need to strip off // Special case: if the class name ends in Plus, we need to strip off
......
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