/** * @return mixed|void */ public function connect() { if (!$this->resource) { $resource = new Client($this->config); $resource->registerQueryType(Query::QUERY_ADMIN, 'Spryker\\Shared\\Library\\Storage\\Adapter\\Solr\\Solarium\\QueryType\\Admin\\Query'); if ($this->endpoint) { $resource->setDefaultEndpoint($this->endpoint); } $this->resource = $resource; } }