What is this Object Manager in Magento 2 doing? Why do I need to define my dependencies in an XML file? This session will introduce you to the concepts of Inversion of Control and Dependency Injection, two concepts which are closely related to each other. Learn about the general idea behind both concepts, the different ways to inject dependencies as well as their pros and cons.
A while back i wrote a blog post on a nifty trick you can use while integration testing. I boils down to the fact that you can provide an mock object to the object manager. The moment the original object is requested by the object manager via dependency injection, the mocked object will be returned. In this blog post i share all the details about it.
Sign up now to add your profile to the site. Whether you're a freelancer or work for an agency or a merchant, you can find other developers to hire or get clients for yourself or for your company.