Skip to content

Commit 457b6ee

Browse files
Update README.md
typo fix
1 parent 1a32ac0 commit 457b6ee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ To log cron actions you should add behavior to all commands that should be logge
6969
*/
7070
public function behaviors()
7171
{
72-
return array(
73-
'cronLogger' => array(
72+
return [
73+
'cronLogger' => [
7474
'class' => 'yii2mod\cron\behaviors\CronLoggerBehavior',
75-
'actions' => array( // action names that should be logged
75+
'actions' => [ // action names that should be logged
7676
'index',
77-
'test
78-
),
79-
),
80-
);
77+
'test'
78+
],
79+
],
80+
];
8181
}
8282
```
8383
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

Comments
 (0)