Skip to content

Commit

Permalink
Compatible Magento 2.4.6 & PHP82
Browse files Browse the repository at this point in the history
[2023-08-21T13:07:05.748747+00:00] main.ERROR: Deprecated Functionality: Creation of dynamic property Magiccart\Shopbrand\Controller\Adminhtml\Brand\Index\Interceptor::$_resultRedirectFactory is deprecated in app/code/Magiccart/Shopbrand/Controller/Adminhtml/Action.php on line 84 [] []
  • Loading branch information
magiccart committed Aug 21, 2023
1 parent e723eba commit 480d326
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function __construct(
$this->_resultPageFactory = $resultPageFactory;
$this->_resultLayoutFactory = $resultLayoutFactory;
$this->_resultForwardFactory = $resultForwardFactory;
$this->_resultRedirectFactory = $context->getResultRedirectFactory();
$this->resultRedirectFactory = $context->getResultRedirectFactory();

$this->_shopbrandFactory = $shopbrandFactory;
$this->_shopbrandCollectionFactory = $shopbrandCollectionFactory;
Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Brand/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function execute()
$this->messageManager->addError($e->getMessage());
}

$resultRedirect = $this->_resultRedirectFactory->create();
$resultRedirect = $this->resultRedirectFactory->create();

return $resultRedirect->setPath('*/*/');
}
Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Brand/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function execute()
$model->setStoreViewId($storeViewId)->load($id);
if (!$model->getId()) {
$this->messageManager->addError(__('This Brand no longer exists.'));
$resultRedirect = $this->_resultRedirectFactory->create();
$resultRedirect = $this->resultRedirectFactory->create();

return $resultRedirect->setPath('*/*/');
}
Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Brand/MassDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function execute()
$this->messageManager->addError($e->getMessage());
}
}
$resultRedirect = $this->_resultRedirectFactory->create();
$resultRedirect = $this->resultRedirectFactory->create();

return $resultRedirect->setPath('*/*/');
}
Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Brand/MassStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function execute()
$this->messageManager->addError($e->getMessage());
}
}
$resultRedirect = $this->_resultRedirectFactory->create();
$resultRedirect = $this->resultRedirectFactory->create();

return $resultRedirect->setPath('*/*/', ['store' => $this->getRequest()->getParam('store')]);
}
Expand Down
2 changes: 1 addition & 1 deletion Controller/Adminhtml/Brand/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Save extends \Magiccart\Shopbrand\Controller\Adminhtml\Action
*/
public function execute()
{
$resultRedirect = $this->_resultRedirectFactory->create();
$resultRedirect = $this->resultRedirectFactory->create();

if ($data = $this->getRequest()->getPostValue()) {
$model = $this->_shopbrandFactory->create();
Expand Down

0 comments on commit 480d326

Please sign in to comment.