예제 #1
0
 /**
  * constructor
  *
  * @param \Magento\Backend\Model\Session $backendSession
  * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
  * @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
  * @param \Mageplaza\Blog\Model\CategoryFactory $categoryFactory
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  * @param \Magento\Backend\App\Action\Context $context
  */
 public function __construct(\Magento\Backend\Model\Auth\Session $backendSession, \Magento\Framework\View\Result\PageFactory $resultPageFactory, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory, \Mageplaza\Blog\Model\CategoryFactory $categoryFactory, \Magento\Framework\Registry $registry, \Magento\Backend\App\Action\Context $context)
 {
     $this->backendSession = $backendSession;
     $this->resultPageFactory = $resultPageFactory;
     $this->resultJsonFactory = $resultJsonFactory;
     parent::__construct($categoryFactory, $registry, $context);
 }
예제 #2
0
 /**
  * constructor
  *
  * @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
  * @param \Magento\Framework\View\LayoutFactory $layoutFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Mageplaza\Blog\Model\CategoryFactory $categoryFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  * @param \Magento\Backend\App\Action\Context $context
  */
 public function __construct(\Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory, \Magento\Framework\View\LayoutFactory $layoutFactory, \Psr\Log\LoggerInterface $logger, \Mageplaza\Blog\Model\CategoryFactory $categoryFactory, \Magento\Framework\Registry $coreRegistry, \Magento\Backend\App\Action\Context $context)
 {
     $this->resultJsonFactory = $resultJsonFactory;
     $this->layoutFactory = $layoutFactory;
     $this->logger = $logger;
     parent::__construct($categoryFactory, $coreRegistry, $context);
 }
예제 #3
0
 /**
  * constructor
  *
  * @param \Magento\Framework\Controller\Result\RawFactory $resultRawFactory
  * @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
  * @param \Magento\Framework\View\LayoutFactory $layoutFactory
  * @param \Magento\Backend\Helper\Js $jsHelper
  * @param \Mageplaza\Blog\Model\CategoryFactory $categoryFactory
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  * @param \Magento\Backend\App\Action\Context $context
  */
 public function __construct(\Magento\Framework\Controller\Result\RawFactory $resultRawFactory, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory, \Magento\Framework\View\LayoutFactory $layoutFactory, \Magento\Backend\Helper\Js $jsHelper, \Mageplaza\Blog\Model\CategoryFactory $categoryFactory, \Magento\Framework\Registry $registry, \Magento\Backend\App\Action\Context $context)
 {
     $this->resultRawFactory = $resultRawFactory;
     $this->resultJsonFactory = $resultJsonFactory;
     $this->layoutFactory = $layoutFactory;
     $this->jsHelper = $jsHelper;
     parent::__construct($categoryFactory, $registry, $context);
 }
예제 #4
0
 /**
  * constructor
  *
  * @param \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
  * @param \Mageplaza\Blog\Model\CategoryFactory $postFactory
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  * @param \Magento\Backend\App\Action\Context $context
  */
 public function __construct(\Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory, \Mageplaza\Blog\Model\CategoryFactory $postFactory, \Magento\Framework\Registry $registry, \Magento\Backend\App\Action\Context $context)
 {
     $this->resultLayoutFactory = $resultLayoutFactory;
     parent::__construct($postFactory, $registry, $context);
 }
 /**
  * constructor
  *
  * @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
  * @param \Mageplaza\Blog\Model\CategoryFactory $categoryFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  * @param \Magento\Backend\App\Action\Context $context
  */
 public function __construct(\Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory, \Mageplaza\Blog\Model\CategoryFactory $categoryFactory, \Magento\Framework\Registry $coreRegistry, \Magento\Backend\App\Action\Context $context)
 {
     $this->resultJsonFactory = $resultJsonFactory;
     parent::__construct($categoryFactory, $coreRegistry, $context);
 }