How to add new dependencies to classes

Sometimes we need to add new dependencies to classes, and we need to do this backward-compatible. In this article I am going to describe how to do it. I’m also going to tell about the common mistakes.

So, let’s start)


On the production environment, Magento should work on a read-o...

Continue reading...
How to add custom cron tasks

How to add custom cron tasks

Magento has provided CLI commands to work with cron tasks since version 2.2.0

cron:install - generates and installs crontab for a current user and a current instance

cron:remove - removes tasks from crontab

An example of what contains crontab after running cron:install:

Continue reading...