![]() 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/redchamps/module-total-adjustment/Controller/Adminhtml/Action/ |
<?php /** * @author RedChamps Team * @copyright Copyright (c) RedChamps (https://redchamps.com/) * @package RedChamps_TotalAdjustment */ namespace RedChamps\TotalAdjustment\Controller\Adminhtml\Action; use Magento\Backend\App\Action; use Magento\Backend\App\Action\Context; use Magento\Framework\Serialize\Serializer\Json; use RedChamps\TotalAdjustment\Api\Order\AdjustmentsInterface; abstract class Base extends Action { protected $adjustmentsModifier; /** * @var Json */ protected $serializer; public function __construct( AdjustmentsInterface $adjustments, Json $serializer, Context $context ) { $this->adjustmentsModifier = $adjustments; parent::__construct($context); $this->serializer = $serializer; } protected function _isAllowed() { return $this->_authorization->isAllowed( 'RedChamps_TotalAdjustment::allowed' ); } }