You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
423 B
19 lines
423 B
4 weeks ago
|
<?php
|
||
|
|
||
|
namespace App\Wrappers;
|
||
|
|
||
|
use Algolia\AlgoliaSearch\Api\SearchClient;
|
||
|
use App\Configuration;
|
||
|
|
||
|
class AlgoliaInteractions
|
||
|
{
|
||
|
private SearchClient $SearchClient;
|
||
|
public function __construct()
|
||
|
{
|
||
|
$this->SearchClient = SearchClient::create(
|
||
|
appId: Configuration::GetConfig("Algolia", "AppID"),
|
||
|
apiKey: Configuration::GetConfig("Algolia", "Keys", "SearchOnly"),
|
||
|
);
|
||
|
}
|
||
|
}
|