Codeception / module-yii2

Codeception module for Yii2 framework
MIT License
16 stars 36 forks source link

[yii\di\NotInstantiableException] Failed to instantiate component or class "yii\symfonymailer\Message". #90

Closed SOHELAHMED7 closed 9 months ago

SOHELAHMED7 commented 9 months ago

I am making a Yii 2 app to work in PHP 8.2

I upgraded this libs to this versions: codeception to 5.0.12 and module-yii2 to 1.1.9

My existing test fails saying:


  [yii\di\NotInstantiableException] Failed to instantiate component or class "yii\symfonymailer\Message".  

#1  /app/vendor/yiisoft/yii2/di/Container.php:509
#2  /app/vendor/yiisoft/yii2/di/Container.php:507
#3  /app/vendor/yiisoft/yii2/di/Container.php:385
#4  /app/vendor/yiisoft/yii2/di/Container.php:170
#5  /app/vendor/yiisoft/yii2/BaseYii.php:365
#6  /app/vendor/yiisoft/yii2/mail/BaseMailer.php:236
#7  /app/vendor/yiisoft/yii2/mail/BaseMailer.php:175

Note that I am using yii2-swiftmailer instead of yii2-symfonymailer.

https://github.com/Codeception/module-yii2/pull/65/files#diff-bfcaa912f312c12714ef006352d39d11030d8aa7c75e4dbedad811d9ded50869L8 causes above error.