diff --git a/src/UserModule.php b/src/UserModule.php index a95a11c..df1c9ae 100644 --- a/src/UserModule.php +++ b/src/UserModule.php @@ -5,10 +5,9 @@ namespace Yii\User; use Yii; -use yii\base\Module; use yii\helpers\Url; -final class UserModule extends Module +final class UserModule { /** * Flag for email change. @@ -57,8 +56,6 @@ final class UserModule extends Module public readonly string $urlConfirmation; public function __construct( - $id, - Module $module, public readonly int $autoLogin = 1209600, public readonly bool $confirmation = false, public readonly bool $floatLabels = true, @@ -86,7 +83,5 @@ public function __construct( ); $this->mailerWelcomeSubject = $mailerWelcomeSubject ?? Yii::t('yii.user', 'Welcome to {0}', [Yii::$app->name]); $this->urlConfirmation = $urlConfirmation ??= Url::to('/user/confirm'); - - parent::__construct($id, $module, $config); } }