Skip to main content

Questions tagged [dependency-injection]

Denotes questions regarding Magento 2 Dependency injection

0 votes
1 answer
43 views

I'm trying to view a grid in database but I'm stuck on this error: Es100\ProductNotifier\Model\ResourceModel\Subscription\Grid\SubscriptionModel does not extend \Magento\Framework\DataObject ...
Petacchi's user avatar
0 votes
1 answer
79 views

I am trying to change the logic in my Elasticsearch engine from "and" logic to "or" logic following the advise of the second answer in this question How do I change Magento 2 ...
Jack's user avatar
  • 5
0 votes
1 answer
260 views

Error main.ERROR: Deprecated Functionality: Creation of dynamic property Magiccart\Magicproduct\Controller\Adminhtml\Product\Index\Interceptor::$_resultRedirectFactory is deprecated in vendor/...
Sheri's user avatar
  • 159
1 vote
2 answers
957 views

I have recently been asked to help maintain a Magento module, and while I generally understand what DI is and why we want to use it, I was a bit confused by the 'automatic' side of things in Magento. ...
user111598's user avatar
0 votes
2 answers
146 views

I have tried to create DI like there (Data and DependentClass) but it doesn't working for me: "ArgumentCountError: Too few arguments to function DependentClass::__construct(), 0 passed...." ...
camradeq's user avatar
2 votes
1 answer
3k views

Im trying to override the resolver by using a plugin in Magento 2 to change text. vendor/magento/module-quote/Model/CouponManagement.php - I need to change this class ApplyCouponToCart implements ...
Kbee's user avatar
  • 41
0 votes
1 answer
54 views

I am fairly new to Magento and following a tutorial on Udemy to learn how to develop on Magento 2. I am attempting to overwrite the ProductRepositoryInterface, however whenever I add the preference ...
Peter Stuart's user avatar
0 votes
0 answers
219 views

I'm working on a simple FAQ widget module for a client and I seem to have run into something quite strange with the DI/Reflection cache. My problem is with the Save controller action which uses a ...
aweisman's user avatar

15 30 50 per page
1
2 3 4 5
16