Skip to content

Commit

Permalink
various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbourdeau committed Aug 20, 2018
1 parent d60e743 commit 20ca0df
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
#### 2.0 Alpha 2

* Add getter and setter for `Index::indexName` property
* Fix Traviss
* Fix Travis
* Introduce ClientConfiguration
* Introduce Client singleton with `Client::get()`


### UNRELEASED
Expand Down
2 changes: 0 additions & 2 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
// with .php
$file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';

dump($file);

// if the file exists, require it
if (file_exists($file)) {
require $file;
Expand Down
1 change: 1 addition & 0 deletions src/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public function freshObjects($objects, $requestOptions = array())
{
$tmpName = $this->indexName.'_tmp_'.uniqid();

// TODO: Replica!
$this->api->write(
'POST',
api_path('/1/indexes/%s/operation', $this->indexName),
Expand Down
3 changes: 1 addition & 2 deletions tests/Integration/AlgoliaIntegrationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ protected static function newClient($config = array())
$config += array(
'app-id' => getenv('ALGOLIA_APP_ID'),
'key' => getenv('ALGOLIA_API_KEY'),
'hosts' => array(),
);

return new SyncClient(
Client::create($config['app-id'], $config['key'], $config['hosts'])
Client::create($config['app-id'], $config['key'])
);
}

Expand Down

0 comments on commit 20ca0df

Please sign in to comment.