1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 17:46:09 +02:00

Rename Elastica handler for naming consistency

This commit is contained in:
Avtandil Kikabidze
2018-04-07 02:53:11 +04:00
parent f5696399f8
commit 57f3ca1791
2 changed files with 24 additions and 24 deletions

View File

@@ -27,13 +27,13 @@ use Elastica\Exception\ExceptionInterface;
* 'index' => 'elastic_index_name',
* 'type' => 'elastic_doc_type',
* );
* $handler = new ElasticSearchHandler($client, $options);
* $handler = new ElasticaHandler($client, $options);
* $log = new Logger('application');
* $log->pushHandler($handler);
*
* @author Jelle Vink <jelle.vink@gmail.com>
*/
class ElasticSearchHandler extends AbstractProcessingHandler
class ElasticaHandler extends AbstractProcessingHandler
{
/**
* @var Client
@@ -81,7 +81,7 @@ class ElasticSearchHandler extends AbstractProcessingHandler
if ($formatter instanceof ElasticaFormatter) {
return parent::setFormatter($formatter);
}
throw new \InvalidArgumentException('ElasticSearchHandler is only compatible with ElasticaFormatter');
throw new \InvalidArgumentException('ElasticaHandler is only compatible with ElasticaFormatter');
}
/**