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

Validate options.

parent 7ef648d2
No related merge requests found
...@@ -58,6 +58,9 @@ class SimilarFactory implements FactoryInterface ...@@ -58,6 +58,9 @@ class SimilarFactory implements FactoryInterface
public function __invoke(ContainerInterface $container, $requestedName, public function __invoke(ContainerInterface $container, $requestedName,
array $options = null array $options = null
) { ) {
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
}
return new $requestedName($container->get('VuFindSearch\Service')); return new $requestedName($container->get('VuFindSearch\Service'));
} }
} }
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