Smile\ElasticsuiteCatalog\Helper\Attribute::__construct PHP Метод

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

public __construct ( Magento\Framework\App\Helper\Context $context, Magento\Framework\ObjectManagerInterface $objectManager, Magento\Catalog\Model\ResourceModel\Eav\AttributeFactory $attributeFactory, string $collectionFactory )
$context Magento\Framework\App\Helper\Context Helper context.
$objectManager Magento\Framework\ObjectManagerInterface The object manager
$attributeFactory Magento\Catalog\Model\ResourceModel\Eav\AttributeFactory Factory used to create attributes.
$collectionFactory string Factory class name to use for create attribute collections.
    public function __construct(Context $context, ObjectManagerInterface $objectManager, AttributeFactory $attributeFactory, $collectionFactory)
    {
        parent::__construct($context);
        $this->attributeFactory = $attributeFactory;
        $this->objectManager = $objectManager;
        $this->attributeCollectionFactory = $this->objectManager->get($collectionFactory);
    }