示例#1
0
 /**
  * Constructor
  *
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param \Magento\Framework\Registry $registry
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Framework\Registry $registry)
 {
     $this->authorization = $context->getAuthorization();
     parent::__construct($context, $registry);
 }
 /**
  * Constructor
  *
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param AccountManagementInterface $customerAccountManagement
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Framework\Registry $registry, AccountManagementInterface $customerAccountManagement)
 {
     parent::__construct($context, $registry);
     $this->customerAccountManagement = $customerAccountManagement;
 }
 /**
  * Constructor
  *
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Customer\Model\CustomerRegistry $customerRegistry
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Framework\Registry $registry, CustomerRegistry $customerRegistry)
 {
     parent::__construct($context, $registry);
     $this->customerRegistry = $customerRegistry;
 }