Ejemplo n.º 1
0
 /**
  * ItemFactory constructor.
  *
  * @param ObjectManagerInterface $objectManager    The Object Manager
  * @param UrlInterface           $urlBuilder       The Url Builder
  * @param ScopeConfigInterface   $scopeConfig      The Scope Config
  * @param CategoryResource       $categoryResource Category Resource Model
  */
 public function __construct(ObjectManagerInterface $objectManager, UrlInterface $urlBuilder, ScopeConfigInterface $scopeConfig, CategoryResource $categoryResource)
 {
     parent::__construct($objectManager);
     $this->urlBuilder = $urlBuilder;
     $this->categoryUrlSuffix = $scopeConfig->getValue(self::XML_PATH_CATEGORY_URL_SUFFIX);
     $this->categoryResource = $categoryResource;
 }
Ejemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param ObjectManagerInterface $objectManager Object manager used to instantiate new item.
  * @param ImageHelper            $imageHelper   Catalog product image helper.
  * @param Render                 $priceRenderer Catalog product price renderer.
  */
 public function __construct(ObjectManagerInterface $objectManager, ImageHelper $imageHelper, Render $priceRenderer)
 {
     parent::__construct($objectManager);
     $this->imageHelper = $imageHelper;
     $this->priceRenderer = $priceRenderer;
     $this->objectManager = $objectManager;
 }
Ejemplo n.º 3
0
 /**
  * Constructor.
  *
  * @param ObjectManagerInterface $objectManager Object manager used to instantiate new item.
  * @param UrlInterface           $urlBuilder    URL Builder
  */
 public function __construct(ObjectManagerInterface $objectManager, UrlInterface $urlBuilder)
 {
     parent::__construct($objectManager);
     $this->urlBuilder = $urlBuilder;
 }