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

Magento command not working on ssh terminal

I logged in to my terminal for run the magento command,after login to ssh on my command prompt and hit the command,and its not returning anything. here is the command [root@new-mt5 dev.ia****nce.com]# php bin/magento indexer:reindex [root@new-mt5 dev.ia****nce.com]# after hitting the…

VIEW QUESTION
Back To Top
Search