Skip to content
Snippets Groups Projects
BaseConfiguration.php 354 B
Newer Older
Pavel's avatar
Pavel committed
<?php

Pavel's avatar
Pavel committed
namespace IQDEV\ElasticSearch\Config;
Pavel's avatar
Pavel committed

use IQDEV\ElasticSearch\Configuration;

class BaseConfiguration implements Configuration
{
    public function getIndexName(): string
    {
        return $_ENV['IQ_ES_PRODUCT_SEARCH_INDEX'];
    }

    public function getMapping(): array
    {
        return include __DIR__.'/product.mappings.php';
    }
}