![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/extmag/shiplab/Controller/Adminhtml/ |
<?php /** * Copyright © Extmag. All rights reserved. */ namespace Extmag\Shiplab\Controller\Adminhtml; use Extmag\Shiplab\Model\AddressRepository; use Magento\Backend\App\Action; use Magento\Backend\App\Action\Context; use Magento\Backend\Model\View\Result\Page; use Magento\Framework\App\Request\DataPersistorInterface; use Magento\Framework\View\Result\PageFactory; abstract class Address extends Action { /** * @var PageFactory */ protected $resultPageFactory; /** * Address * * @var AddressRepository */ protected $addressRepository; /** * @var DataPersistorInterface */ protected $dataPersistorInterface; /** * @param Context $context * @param PageFactory $resultPageFactory * @param AddressRepository $addressRepository * @param DataPersistorInterface $dataPersistorInterface */ public function __construct( Context $context, PageFactory $resultPageFactory, AddressRepository $addressRepository, DataPersistorInterface $dataPersistorInterface ) { $this->resultPageFactory = $resultPageFactory; $this->addressRepository = $addressRepository; $this->dataPersistorInterface = $dataPersistorInterface; parent::__construct($context); } /** * @return Page */ protected function initPage() { /** @var Page $resultPage */ $resultPage = $this->resultPageFactory->create(); $resultPage->setActiveMenu('Extmag_Shiplab::shiplab_address') ->addBreadcrumb(__('Extmag'), __('Extmag')) ->addBreadcrumb(__('Addresses'), __('Addresses')); return $resultPage; } }