skip to Main Content

Magento2: How do inject dependencies into CLI commands

I'm trying to figure out how to use or inject dependencies properly in Magento 2 CLI commands. From https://devdocs.magento.com/guides/v2.4/extension-dev-guide/cli-cmds/cli-howto.html: Your command can use the Object Manager and Magento dependency injection features; for example, it can use constructor dependency injection. Object…

VIEW QUESTION
Back To Top
Search