Smile\ElasticsuiteCore\Model\Autocomplete\Terms\DataProvider::__construct PHP 메소드

__construct() 공개 메소드

Constructor.
public __construct ( Magento\Search\Model\QueryFactory $queryFactory, Magento\Search\Model\Autocomplete\ItemFactory $itemFactory, Autocomplete $configurationHelper, string $type = self::AUTOCOMPLETE_TYPE )
$queryFactory Magento\Search\Model\QueryFactory Search query text factory.
$itemFactory Magento\Search\Model\Autocomplete\ItemFactory Suggest terms item facory.
$configurationHelper Smile\ElasticsuiteCore\Helper\Autocomplete Autocomplete configuration helper.
$type string Autocomplete items type.
    public function __construct(QueryFactory $queryFactory, ItemFactory $itemFactory, ConfigurationHelper $configurationHelper, $type = self::AUTOCOMPLETE_TYPE)
    {
        $this->queryFactory = $queryFactory;
        $this->itemFactory = $itemFactory;
        $this->configurationHelper = $configurationHelper;
        $this->type = $type;
    }