Skip to content

Commit

Permalink
MPercolate requires the "bulk" version DIC instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Feb 11, 2014
1 parent c5f30c8 commit ce39316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elasticsearch/Common/DICBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ private function setEndpoint()
$this->dic['endpoint'] = function ($dicParams) {
return function($class) use ($dicParams) {
$fullPath = '\\Elasticsearch\\Endpoints\\'.$class;
if ($class === 'Bulk' || $class === 'Msearch') {
if ($class === 'Bulk' || $class === 'Msearch' || $class === 'MPercolate') {
return new $fullPath($dicParams['transport'], $dicParams['serializer']);
} else {
return new $fullPath($dicParams['transport']);
Expand Down

0 comments on commit ce39316

Please sign in to comment.