«Incorrect dependency in class OrangeHill\Article\Controller\Adminhtml\ArticleGrid\Save: \Magento\Framework\UrlInterface already exists in context object»

third-party-extension

(Dmitry Fedyuk) #1


Please install the Stripe extension to earosacoustic.com
(Dmitry Fedyuk) #2

Replace from:

public function __construct(
	UrlInterface $urlBuilder,
	\Magento\MediaStorage\Model\File\UploaderFactory $uploaderFactory,
	\Magento\Store\Model\StoreManagerInterface $storeManager,
	Filesystem $fileSystem,
	Action\Context $context
){
	$this->uploaderFactory = $uploaderFactory;
	$this->urlBuilder = $urlBuilder;
	$this->fileSystem = $fileSystem;
	$this->_storeManager=$storeManager;
	parent::__construct($context);
}

to:

public function __construct(
	\Magento\MediaStorage\Model\File\UploaderFactory $uploaderFactory,
	\Magento\Store\Model\StoreManagerInterface $storeManager,
	Filesystem $fileSystem,
	Action\Context $context
){
	$this->uploaderFactory = $uploaderFactory;
	$this->urlBuilder = $this->_url;
	$this->fileSystem = $fileSystem;
	$this->_storeManager=$storeManager;
	parent::__construct($context);
}