src/models/UserModuleConfiguration.php
public function commonApplicationAttributes()
    {
        return [
            'modules' => [
                'users' => [
                    'emailConfirmationNeeded' => (bool)$this->emailConfirmationNeeded,
                    'allowLoginInactiveAccounts' => (bool)$this->allowLoginInactiveAccounts,
                    'enableSocialNetworks' => (bool)$this->enableSocialNetworks,
                    'logLastLoginTime' => (bool)$this->logLastLoginTime,
                    'logLastLoginData' => (bool)$this->logLastLoginData,
                    'passwordResetTokenExpire' => (int)$this->passwordResetTokenExpire,
                    'loginDuration' => (int)$this->loginDuration,
                    'generatedPasswordLength' => (int)$this->generatedPasswordLength,
                ]
            ],
        ];
    }
public function commonApplicationAttributes()
    {
        return [
            'modules' => [
                'users' => [
                    'emailConfirmationNeeded' => (bool)$this->emailConfirmationNeeded,
                    'allowLoginInactiveAccounts' => (bool)$this->allowLoginInactiveAccounts,
                    'enableSocialNetworks' => (bool)$this->enableSocialNetworks,
                    'logLastLoginTime' => (bool)$this->logLastLoginTime,
                    'logLastLoginData' => (bool)$this->logLastLoginData,
                    'passwordResetTokenExpire' => (int)$this->passwordResetTokenExpire,
                    'loginDuration' => (int)$this->loginDuration,
                    'generatedPasswordLength' => (int)$this->generatedPasswordLength,
                ]
            ],
        ];
    }
public function commonApplicationAttributes ( ) { return [ 'modules' => [ 'users' => [ 'emailConfirmationNeeded' => ( bool ) $ this -> emailConfirmationNeeded , 'allowLoginInactiveAccounts' => ( bool ) $ this -> allowLoginInactiveAccounts , 'enableSocialNetworks' => ( bool ) $ this -> enableSocialNetworks , 'logLastLoginTime' => ( bool ) $ this -> logLastLoginTime , 'logLastLoginData' => ( bool ) $ this -> logLastLoginData , 'passwordResetTokenExpire' => ( int ) $ this -> passwordResetTokenExpire , 'loginDuration' => ( int ) $ this -> loginDuration , 'generatedPasswordLength' => ( int ) $ this -> generatedPasswordLength , ] ] , ] ; }
Returns array of module configuration that should be stored in application config.
Array should be ready to merge in app config.
Used both for web and console.

@return array
Returns array of module configuration that should be stored in application config . Array should be ready to merge in app config . Used both for web and console .