public function make(AlgoliaConfig $config)
    {
        return new AlgoliaManager(
            new Client(
                $config->getApplicationId(),
                $config->getApiKey(),
                $config->getHostsArray(),
                $config->getOptions()
            ),
            new ActiveRecordFactory(),
            new ActiveQueryChunker()
        );
    }
public function make(AlgoliaConfig $config)
    {
        return new AlgoliaManager(
            new Client(
                $config->getApplicationId(),
                $config->getApiKey(),
                $config->getHostsArray(),
                $config->getOptions()
            ),
            new ActiveRecordFactory(),
            new ActiveQueryChunker()
        );
    }
public function make ( AlgoliaConfig $ config ) { return new AlgoliaManager ( new Client ( $ config -> getApplicationId ( ) , $ config -> getApiKey ( ) , $ config -> getHostsArray ( ) , $ config -> getOptions ( ) ) , new ActiveRecordFactory ( ) , new ActiveQueryChunker ( ) ) ; }
Makes a new Algolia Client.

@param AlgoliaConfig $config

@return AlgoliaManager

@throws \Exception
Makes a new Algolia Client .