public function __construct(Context $context, ObjectManagerInterface $objectManager, StoreManagerInterface $storeManager, PostFactory $postFactory, CategoryFactory $categoryFactory, TagFactory $tagFactory, TopicFactory $topicFactory) { $this->postfactory = $postFactory; $this->categoryfactory = $categoryFactory; $this->tagfactory = $tagFactory; $this->topicfactory = $topicFactory; parent::__construct($context, $objectManager, $storeManager); }
/** * Data constructor. * * @param \Magento\Framework\App\Helper\Context $context * @param \Magento\Store\Model\StoreManagerInterface $storeManager * @param \Magento\Framework\ObjectManagerInterface $objectManager */ public function __construct(\Magento\Framework\App\Helper\Context $context, StoreManagerInterface $storeManager, ObjectManagerInterface $objectManager) { $this->objectManager = $objectManager; $this->_storeManager = $storeManager; parent::__construct($context, $objectManager, $storeManager); }