예제 #1
0
 /**
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Framework\AuthorizationInterface $authorization
  * @param \Magento\Framework\Registry $registry
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Framework\AuthorizationInterface $authorization, \Magento\Framework\Registry $registry, array $data = [])
 {
     $this->_authorization = $authorization;
     $this->_coreRegistry = $registry;
     parent::__construct($context, $data);
 }
예제 #2
0
 /**
  * Collection factory
  *
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Framework\Registry $coreRegistry, array $data = array())
 {
     $this->_coreRegistry = $coreRegistry;
     parent::__construct($context, $data);
 }
예제 #3
0
 /**
  * @param \Magento\Framework\View\Element\Context $context
  * @param \Magento\Framework\AuthorizationInterface $authorization
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, \Magento\Framework\AuthorizationInterface $authorization, array $data = array())
 {
     $this->_authorization = $authorization;
     parent::__construct($context, $data);
 }