- <?php
-
-
- namespace yii\mutex;
-
- use Yii;
- use yii\db\Connection;
- use yii\base\InvalidConfigException;
- use yii\di\Instance;
-
-
- abstract class DbMutex extends Mutex
- {
-
-
- public $db = 'db';
-
-
-
-
- public function init()
- {
- parent::init();
- $this->db = Instance::ensure($this->db, Connection::className());
- }
- }
|