Webvimark User-Management

Hi All

Long time since using Yii so bare with me please

Basically I have this extension from Webvimark, called User-Management.

What I want is to set a user role on registration, they provide this




'modules'=>[

    'user-management' => [

        'class' => 'webvimark\modules\UserManagement\UserManagementModule',

        'on afterRegistration' => function(UserAuthEvent $event) {

            // Here you can do your own stuff like assign roles, send emails and so on

        },

    ],

],




and this




User::assignRole($userId, $roleName)



I created a User Role called ‘Students’.

How would I assign any newly registered person to this role?

Thanks