We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a32ac0 commit 457b6eeCopy full SHA for 457b6ee
README.md
@@ -69,15 +69,15 @@ To log cron actions you should add behavior to all commands that should be logge
69
*/
70
public function behaviors()
71
{
72
- return array(
73
- 'cronLogger' => array(
+ return [
+ 'cronLogger' => [
74
'class' => 'yii2mod\cron\behaviors\CronLoggerBehavior',
75
- 'actions' => array( // action names that should be logged
+ 'actions' => [ // action names that should be logged
76
'index',
77
- 'test
78
- ),
79
80
- );
+ 'test'
+ ],
+ ];
81
}
82
```
83
As the result, you will be able to view list of cron runs at ```http://project.com/admin/settings/cron``` which contains:
0 commit comments