Mengapa saya tidak bisa menyuntikkan ProductRepositoryInterface di Magento 2?
Saya memiliki aksi pengontrol di mana saya ingin menyuntikkan repositori-produk namespace Nosto\Tagging\Controller\Export; use Magento\Catalog\Api\ProductRepositoryInterface; use Magento\Store\Model\StoreManagerInterface; use Magento\Backend\App\Action; use Magento\Framework\App\Action\Context; class Test extends Action { private $_productRepository; public function __construct( Context $context, StoreManagerInterface $storeManager, ProductRepositoryInterface $productRepository ) { parent::__construct($context); $this->_storeManager = $storeManager; $this->_productRepository = $productRepository; } Tidak peduli urutan apa …