Ejemplo n.º 1
0
 /**
  * @param Context $context
  * @param OrderViewAuthorization $orderAuthorization
  * @param \Magento\Framework\Registry $registry
  * @param PageFactory $resultPageFactory
  * @param CreditmemoRepositoryInterface $creditmemoRepository
  * @param OrderLoader $orderLoader
  */
 public function __construct(
     Context $context,
     OrderViewAuthorization $orderAuthorization,
     \Magento\Framework\Registry $registry,
     PageFactory $resultPageFactory,
     CreditmemoRepositoryInterface $creditmemoRepository,
     OrderLoader $orderLoader
 ) {
     $this->orderLoader = $orderLoader;
     $this->creditmemoRepository = $creditmemoRepository;
     parent::__construct(
         $context,
         $orderAuthorization,
         $registry,
         $resultPageFactory,
         $creditmemoRepository
     );
 }
Ejemplo n.º 2
0
 /**
  * @param Context $context
  * @param OrderViewAuthorization $orderAuthorization
  * @param \Magento\Framework\Registry $registry
  * @param OrderLoader $orderLoader
  */
 public function __construct(Context $context, OrderViewAuthorization $orderAuthorization, \Magento\Framework\Registry $registry, OrderLoader $orderLoader)
 {
     $this->orderLoader = $orderLoader;
     parent::__construct($context, $orderAuthorization, $registry);
 }