Smile\ElasticsuiteCore\Index\Indices\Config::__construct PHP Метод

__construct() публичный Метод

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.
    public function __construct(Reader $reader, CacheInterface $cache, ObjectManagerInterface $objectManager, TypeFactory $typeFactory, MappingFactory $mappingFactory, MappingFieldFactory $mappingFieldFactory, $cacheId = self::CACHE_ID)
    {
        $this->typeFactory = $typeFactory;
        $this->mappingFactory = $mappingFactory;
        $this->mappingFieldFactory = $mappingFieldFactory;
        $this->objectManager = $objectManager;
        parent::__construct($reader, $cache, $cacheId);
    }