/** * @param \Magento\Framework\View\Element\Template\Context $context * @param \Magento\Framework\App\DefaultPathInterface $defaultPath * @param \Magento\Framework\App\Http\Context $httpContext * @param array $data */ public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\DefaultPathInterface $defaultPath, \Magento\Framework\App\Http\Context $httpContext, array $data = array()) { parent::__construct($context, $defaultPath, $data); $this->httpContext = $httpContext; $this->_isScopePrivate = true; }
/** * @param \Magento\Framework\View\Element\Template\Context $context * @param \Magento\Framework\App\DefaultPathInterface $defaultPath * @param \Magento\Framework\Registry $registry * @param array $data */ public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\DefaultPathInterface $defaultPath, \Magento\Framework\Registry $registry, array $data = []) { parent::__construct($context, $defaultPath, $data); $this->_registry = $registry; }
public function __construct(Context $context, DefaultPathInterface $defaultPath, array $data, Config $config) { $this->config = $config; parent::__construct($context, $defaultPath, $data); }