public function __construct(RoleService $roleService, array $rules = []) { $this->roleService = $roleService; $this->setRules($rules); }