Rbac Rules

I use RBAC with DbManager

I have the following rule in my auth_rule table:

name: userEqualRule

data: s:56:"return function() {Yii::$app->user->id==$params["uid"];}";

But this cannot work because when rbac called the rbac execute function in Manager.php

  public function executeRule($ruleName, $params, $data)


        $rule = $this->getRule($ruleName);

        if ($rule) {

            return $rule->execute($params, $data);


        return true;


My question is now, how to set the data column in the auth_rule table