Spamworldpro Mini Shell
Spamworldpro


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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/extmag/shiplab/Controller/Adminhtml/Label.php
<?php
/**
 * Copyright © Extmag. All rights reserved.
 */

namespace Extmag\Shiplab\Controller\Adminhtml;

use Extmag\Shiplab\Api\LabelRepositoryInterface;
use Extmag\Shiplab\Helper\RequestFactory;
use Extmag\Shiplab\Model\LabelRepository;
use Extmag\Shiplab\Model\ResourceModel\Label\CollectionFactory;
use Magento\Backend\App\Action;
use Magento\Backend\App\Action\Context;
use Magento\Backend\Model\View\Result\ForwardFactory;
use Magento\Backend\Model\View\Result\Page;
use Magento\Framework\App\Request\DataPersistorInterface;
use Magento\Framework\View\Result\PageFactory;
use Magento\Ui\Component\MassAction\Filter;
use Extmag\Shiplab\Helper\LabelFactory;
use Psr\Log\LoggerInterface as Logs;

abstract class Label extends Action
{
    /**
     * @var ForwardFactory
     */
    protected $resultForwardFactory;

    /**
     * @var PageFactory
     */
    protected $resultPageFactory;

    /**
     * @var DataPersistorInterface
     */
    protected $dataPersistorInterface;

    /**
     * @var LabelRepository
     */
    protected $labelRepository;

    /**
     * @var RequestFactory
     */
    protected $requestToAPI;

    /**
     * @var Filter
     */
    protected $filter;

    /**
     * @var CollectionFactory
     */
    protected $collectionFactory;
    /**
     * @var LabelFactory
     */
    protected $helperLabel;
    /**
     * @var Logs
     */
    protected $log;

    /**
     * @param Context $context
     * @param ForwardFactory $resultForwardFactory
     * @param PageFactory $resultPageFactory
     * @param DataPersistorInterface $dataPersistorInterface
     * @param LabelRepositoryInterface $labelRepository
     * @param RequestFactory $requestToAPI
     * @param Filter $filter
     * @param CollectionFactory $collectionFactory
     * @param LabelFactory $helperLabel
     * @param Logs $log
     */
    public function __construct(
        Context                  $context,
        ForwardFactory           $resultForwardFactory,
        PageFactory              $resultPageFactory,
        DataPersistorInterface   $dataPersistorInterface,
        LabelRepositoryInterface $labelRepository,
        RequestFactory           $requestToAPI,
        Filter                   $filter,
        CollectionFactory        $collectionFactory,
        LabelFactory             $helperLabel,
        Logs                     $log
    ) {
        parent::__construct($context);
        $this->resultForwardFactory = $resultForwardFactory;
        $this->resultPageFactory = $resultPageFactory;
        $this->dataPersistorInterface = $dataPersistorInterface;
        $this->labelRepository = $labelRepository;
        $this->requestToAPI = $requestToAPI;
        $this->filter = $filter;
        $this->collectionFactory = $collectionFactory;
        $this->helperLabel = $helperLabel;
        $this->log = $log;
    }

    /**
     * @return Page
     */
    protected function initPage()
    {
        /** @var Page $resultPage */
        $resultPage = $this->resultPageFactory->create();
        $resultPage->setActiveMenu('Extmag_Shiplab::shiplab')
            ->addBreadcrumb(__('Extmag'), __('Extmag'))
            ->addBreadcrumb(__('Label'), __('Label'));
        return $resultPage;
    }

    public function isCanVoid($model)
    {
        return true;
    }
}

Spamworldpro Mini