RbacHelper.php
public static function createRole($name, $description)
    {
        // Create role with a given name and description and add it to RBAC system
        $auth = Yii::$app->authManager;
        $role = $auth->createRole($name);
        $role->description = $description;
        $auth->add($role);

        return $role;
    }
public static function createRole($name, $description)
    {
        // Create role with a given name and description and add it to RBAC system
        $auth = Yii::$app->authManager;
        $role = $auth->createRole($name);
        $role->description = $description;
        $auth->add($role);

        return $role;
    }
public static function createRole ( $ name , $ description ) { // Create role with a given name and description and add it to RBAC system $ auth = Yii :: $ app -> authManager ; $ role = $ auth -> createRole ( $ name ) ; $ role -> description = $ description ; $ auth -> add ( $ role ) ; return $ role ; }
Creates role with a given name and description and adds it to RBAC system.
@param string $name
@param string $description
@return Role
Creates role with a given name and description and adds it to RBAC system .