action पर टैग किए गए जवाब


5
मैं Magento 2 में ProductRepositoryInterface को इंजेक्ट क्यों नहीं कर सकता?
मेरे पास एक नियंत्रक क्रिया है जिसमें मैं उत्पाद-रिपॉजिटरी को इंजेक्ट करना चाहूंगा 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; } कोई …
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.