luya\console\commands\BaseCrudController::getDbConnection PHP Method

getDbConnection() protected method

protected getDbConnection ( ) : Connection
return Connection the DB connection as specified by [[db]].
    protected function getDbConnection()
    {
        return Yii::$app->get('db', false);
    }