Функционал для работы с кроном
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist dominion/yii2-cron "*"
or add
"dominion/yii2-cron": "*"
to the require section of your composer.json file.
composer.json
Once the extension is installed, simply use it in your code by :
<?= \dominion\cron\AutoloadExample::widget(); ?>```