Skip to content

Commit

Permalink
Added the missing Cluster\Nodes BC classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Nov 25, 2019
1 parent e11c6b9 commit ec07a44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
* NOTE: This file will be removed with elasticsearch-php 8.0.0
*/

class_alias('\Elasticsearch\Endpoints\Nodes\HotThreads', '\Elasticsearch\Endpoints\Cluster\Nodes\HotThreads');
class_alias('\Elasticsearch\Endpoints\Nodes\Info', '\Elasticsearch\Endpoints\Cluster\Nodes\Info');
class_alias('\Elasticsearch\Endpoints\Nodes\ReloadSecureSettings', '\Elasticsearch\Endpoints\Cluster\Nodes\ReloadSecureSettings');
class_alias('\Elasticsearch\Endpoints\Nodes\Stats', '\Elasticsearch\Endpoints\Cluster\Nodes\Stats');
class_alias('\Elasticsearch\Endpoints\Nodes\Usage', '\Elasticsearch\Endpoints\Cluster\Nodes\Usage');
class_alias('\Elasticsearch\Endpoints\Cluster\GetSettings', '\Elasticsearch\Endpoints\Cluster\Settings\Get');
class_alias('\Elasticsearch\Endpoints\Cluster\PutSettings', '\Elasticsearch\Endpoints\Cluster\Settings\Put');
class_alias('\Elasticsearch\Endpoints\Indices\DeleteAlias', '\Elasticsearch\Endpoints\Indices\Alias\Delete');
Expand Down
5 changes: 4 additions & 1 deletion tests/Elasticsearch/BackwardCompatibleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ public function getClasses()
['\Elasticsearch\Endpoints\Cluster\RemoteInfo'],
['\Elasticsearch\Endpoints\Cluster\Stats'],
['\Elasticsearch\Endpoints\Cluster\AllocationExplain'],
['\Elasticsearch\Endpoints\Cluster\Nodes\HotThreads'],
['\Elasticsearch\Endpoints\Cluster\Nodes\Info'],
['Elasticsearch\Endpoints\Cluster\Nodes\Stats'],
['\Elasticsearch\Endpoints\Cluster\Nodes\ReloadSecureSettings'],
['\Elasticsearch\Endpoints\Cluster\Nodes\Stats'],
['\Elasticsearch\Endpoints\Cluster\Nodes\Usage'],
['\Elasticsearch\Endpoints\ClearScroll'],
['\Elasticsearch\Endpoints\Script\Get'],
['\Elasticsearch\Endpoints\Script\Delete'],
Expand Down

0 comments on commit ec07a44

Please sign in to comment.