yii2 icon indicating copy to clipboard operation
yii2 copied to clipboard

Added DI usage in Schema

Open manchenkoff opened this issue 2 years ago • 0 comments

Q A
Is bugfix?
New feature?
Breaks BC?
Fixed issues #9740

I've added DI usage instead of new keyword to get instances of QueryBuilder and ColumnSchemaBuilder, as was suggested in the discussion in #9740.

Now we can register different classes in container by

\Yii::$container->set(
    \yii\db\sqlite\QueryBuilder::class, 
    ['class' => \santilin\sqlite\QueryBuilder::class]
);

manchenkoff avatar Aug 20 '22 17:08 manchenkoff