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

Added method to retrieve a backend.

parent a395135f
No related merge requests found
...@@ -202,6 +202,20 @@ class Service ...@@ -202,6 +202,20 @@ class Service
$this->triggerPost($response, $args); $this->triggerPost($response, $args);
} }
/**
* Get access to a search backend.
*
* @param string $backend Search backend identifier
*
* @return BackendInterface
*/
public function getBackend($backend)
{
$context = __FUNCTION__;
$args = compact('backend', 'context');
return $this->resolve($backend, $args);
}
/** /**
* Set application logger. * Set application logger.
* *
......
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