We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See https://github.com/yiisoft/yii2/blob/76d6345e85c05fa874f1cefdeac94a40d9dcaa39/framework/di/Container.php#L589.
__construct() value might be an yii\di\Instance instance and it should be resolved into its type:
__construct()
yii\di\Instance
Yii::createObject([ '__class' => MyClass::class, '__construct()' => [ 'request' => Instance::of(\yii\web\Request::class), ], ]);
The text was updated successfully, but these errors were encountered:
It's also applied to all properties, passed via array configuration.
Sorry, something went wrong.
No branches or pull requests
See https://github.com/yiisoft/yii2/blob/76d6345e85c05fa874f1cefdeac94a40d9dcaa39/framework/di/Container.php#L589.
__construct()
value might be anyii\di\Instance
instance and it should be resolved into its type:The text was updated successfully, but these errors were encountered: