Skip to content

Commit

Permalink
fix: added requestTransformer and responseTransformer to the Poli…
Browse files Browse the repository at this point in the history
…cyService factory so they can be passed to the PolicyServiceImpl constructor
  • Loading branch information
gkc committed Dec 11, 2024
1 parent 131a8ef commit 2926a3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/at_policy/lib/src/policy/interfaces.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ abstract class PolicyService implements AtRpcCallbacks {
String? loggingAtsign,
Set<String>? allowList,
bool allowAll = true,
RpcTransformer? requestTransformer,
RpcTransformer? responseTransformer,
}) {
return PolicyServiceImpl(
atClient: atClient,
Expand All @@ -61,6 +63,8 @@ abstract class PolicyService implements AtRpcCallbacks {
loggingAtsign: loggingAtsign ?? atClient.getCurrentAtSign()!,
allowList: allowList ?? {},
allowAll: allowAll,
requestTransformer: requestTransformer,
responseTransformer: responseTransformer,
);
}
}

0 comments on commit 2926a3d

Please sign in to comment.