init
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
namespace WeltPixel\Backend\Controller\Adminhtml\Debugger;
|
||||
|
||||
class Rewritescustom extends \WeltPixel\Backend\Controller\Adminhtml\Debugger\Rewrites
|
||||
{
|
||||
/**
|
||||
* @var \Magento\Framework\View\Result\PageFactory
|
||||
*/
|
||||
protected $resultPageFactory;
|
||||
|
||||
/**
|
||||
* @param \Magento\Backend\App\Action\Context $context
|
||||
* @param \Magento\Framework\Registry $coreRegistry
|
||||
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
|
||||
*/
|
||||
public function __construct(
|
||||
\Magento\Backend\App\Action\Context $context,
|
||||
\Magento\Framework\Registry $coreRegistry,
|
||||
\Magento\Framework\View\Result\PageFactory $resultPageFactory
|
||||
)
|
||||
{
|
||||
$this->resultPageFactory = $resultPageFactory;
|
||||
parent::__construct($context, $coreRegistry, $resultPageFactory);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Magento\Framework\Controller\ResultInterface
|
||||
*/
|
||||
public function execute()
|
||||
{
|
||||
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
|
||||
$this->_session->setDebuggerRewite(false);
|
||||
$resultRedirect = $this->resultRedirectFactory->create();
|
||||
return $resultRedirect->setPath('*/*/rewrites');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user