Skip to content

Commit 8bd3beb

Browse files
Added \ to Yii
1 parent a9d36c6 commit 8bd3beb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ return [
130130
'on before_consume' => function ($event) {
131131
if (isset(\Yii::$app->db) && \Yii::$app->db->isActive) {
132132
try {
133-
Yii::$app->db->createCommand('SELECT 1')->query();
133+
\Yii::$app->db->createCommand('SELECT 1')->query();
134134
} catch (\yii\db\Exception $exception) {
135-
Yii::$app->db->close();
135+
\Yii::$app->db->close();
136136
}
137137
}
138138
},

0 commit comments

Comments
 (0)