Beispiel #1
0
 /**
  * @param Context                $context           Helper context.
  * @param ObjectManagerInterface $objectManager     The object manager
  * @param AttributeFactory       $attributeFactory  Factory used to create attributes.
  * @param string                 $collectionFactory 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);
 }