@@ -18,13 +18,15 @@ public actor WordPressAPI {
18
18
urlSession: URLSession ,
19
19
apiRootUrl: ParsedUrl ,
20
20
authentication: WpAuthentication ,
21
- middlewarePipeline: MiddlewarePipeline = . default
21
+ middlewarePipeline: MiddlewarePipeline = . default,
22
+ appNotifier: WpAppNotifier ? = nil
22
23
) {
23
24
self . init (
24
25
apiRootUrl: apiRootUrl,
25
26
authenticationProvider: . staticWithAuth( auth: authentication) ,
26
27
executor: WpRequestExecutor ( urlSession: urlSession) ,
27
- middlewarePipeline: middlewarePipeline
28
+ middlewarePipeline: middlewarePipeline,
29
+ appNotifier: appNotifier
28
30
)
29
31
}
30
32
@@ -39,7 +41,8 @@ public actor WordPressAPI {
39
41
apiRootUrl: apiRootUrl,
40
42
authenticationProvider: authenticationProvider,
41
43
executor: WpRequestExecutor ( urlSession: urlSession) ,
42
- middlewarePipeline: middlewarePipeline
44
+ middlewarePipeline: middlewarePipeline,
45
+ appNotifier: appNotifier
43
46
)
44
47
}
45
48
@@ -48,7 +51,7 @@ public actor WordPressAPI {
48
51
authenticationProvider: WpAuthenticationProvider ,
49
52
executor: SafeRequestExecutor ,
50
53
middlewarePipeline: MiddlewarePipeline ,
51
- appNotifier: WpAppNotifier ? = nil
54
+ appNotifier: WpAppNotifier ?
52
55
) {
53
56
self . apiClientDelegate = WpApiClientDelegate (
54
57
authProvider: authenticationProvider,
0 commit comments