![]() 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/app/code/Chronopost/Chronorelais/Controller/Adminhtml/Sales/ |
<?php /** * Chronopost * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade this extension to newer * version in the future. * * @category Chronopost * @package Chronopost_Chronorelais * @copyright Copyright (c) 2021 Chronopost */ declare(strict_types=1); namespace Chronopost\Chronorelais\Controller\Adminhtml\Sales; use Magento\Backend\App\Action\Context; use Magento\Backend\Model\View\Result\Page; use Magento\Framework\View\Result\PageFactory; use Magento\Backend\App\Action; /** * Class Bordereau * * @package Chronopost\Chronorelais\Controller\Adminhtml\Sales */ class Bordereau extends Action { /** * @var PageFactory */ protected $resultPageFactory; /** * Bordereau constructor. * * @param Context $context * @param PageFactory $resultPageFactory */ public function __construct( Context $context, PageFactory $resultPageFactory ) { parent::__construct($context); $this->resultPageFactory = $resultPageFactory; } /** * Index action * * @return Page */ public function execute() { /** @var Page $resultPage */ $resultPage = $this->resultPageFactory->create(); $resultPage->setActiveMenu('Chronopost_Chronorelais::sales'); $resultPage->getConfig()->getTitle()->prepend(__('End of day slip')); return $resultPage; } /** * Check is the current user is allowed to access this section * * @return bool */ protected function _isAllowed() { return $this->_authorization->isAllowed('Chronopost_Chronorelais::sales'); } }