When I run this command:
php bin/mangento setup:di:compile
It will throw the Error Exception below:
[ErrorException]
Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper\Interceptor and Magento\Framework\Interc
eption\Interceptor define the same property ($pluginLocator) in the composition of MyPool\AttrProduct\Controll
er\Adminhtml\Product\Initialization\Helper\InterceptorCus. This might be incompatible, to improve maintaina
bility consider using accessor methods in traits instead. Class was composed
Anybody know what this means and how to fix it?
content of file "InterceptorCus.php"
<?php
namespace MyPool\AttrProduct\Controller\Adminhtml\Product\Initialization\Helper;
/**
* Interceptor class for @see
* \Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper
*/
class InterceptorCus extends \Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper\Interceptor
{
use \Magento\Framework\Interception\Interceptor;
public function __construct(\Magento\Framework\App\RequestInterface $request, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Controller\Adminhtml\Product\Initialization\StockDataFilter $stockFilter, \Magento\Catalog\Model\Product\Initialization\Helper\ProductLinks $productLinks, \Magento\Backend\Helper\Js $jsHelper, \Magento\Framework\Stdlib\DateTime\Filter\DateTime $dateFilter)
{
$this->___init();
parent::__construct($request, $storeManager, $stockFilter, $productLinks, $jsHelper, $dateFilter);
}
}