PHP Class Smile\ElasticsuiteCore\Index\Indices\Config

Author: Aurelien FOUCRET ([email protected])
Inheritance: extends Magento\Framework\Config\Data
Show file Open project: smile-sa/elasticsuite Class Usage Examples

Public Methods

Method Description
__construct ( Reader $reader, Magento\Framework\Config\CacheInterface $cache, Magento\Framework\ObjectManagerInterface $objectManager, Smile\ElasticsuiteCore\Api\Index\TypeInterfaceFactory $typeFactory, Smile\ElasticsuiteCore\Api\Index\MappingInterfaceFactory $mappingFactory, Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterfaceFactory $mappingFieldFactory, string $cacheId = self::CACHE_ID ) Instanciate config.

Protected Methods

Method Description
initData ( ) : void Init data for configuration.

Private Methods

Method Description
initIndexConfig ( array $indexConfigData ) : array Init type, mapping, and fields from a index configuration array.
isDynamicFieldsProvider ( mixed $datasource ) : boolean Check if a datasource can be used as a dynamic fields provider.

Method Details

__construct() public method

Instanciate config.
public __construct ( Reader $reader, Magento\Framework\Config\CacheInterface $cache, Magento\Framework\ObjectManagerInterface $objectManager, Smile\ElasticsuiteCore\Api\Index\TypeInterfaceFactory $typeFactory, Smile\ElasticsuiteCore\Api\Index\MappingInterfaceFactory $mappingFactory, Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterfaceFactory $mappingFieldFactory, string $cacheId = self::CACHE_ID )
$reader Smile\ElasticsuiteCore\Index\Indices\Config\Reader Config file reader.
$cache Magento\Framework\Config\CacheInterface Cache instance.
$objectManager Magento\Framework\ObjectManagerInterface Object manager (used to instanciate several factories)
$typeFactory Smile\ElasticsuiteCore\Api\Index\TypeInterfaceFactory Index type factory.
$mappingFactory Smile\ElasticsuiteCore\Api\Index\MappingInterfaceFactory Index mapping factory.
$mappingFieldFactory Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterfaceFactory Index mapping field factory.
$cacheId string Default config cache id.

initData() protected method

Init data for configuration.
protected initData ( ) : void
return void