@@ -45,16 +45,6 @@ class EmailUserNotifier implements UserNotifierInterface
45
45
*/
46
46
private $ logger ;
47
47
48
- /**
49
- * @var UrlInterface
50
- */
51
- private $ url ;
52
-
53
- /**
54
- * @var State
55
- */
56
- private $ appState ;
57
-
58
48
/**
59
49
* @var UserNotifierConfig
60
50
*/
@@ -66,7 +56,6 @@ class EmailUserNotifier implements UserNotifierInterface
66
56
* @param StoreManagerInterface $storeManager
67
57
* @param LoggerInterface $logger
68
58
* @param UrlInterface $url
69
- * @param State $appState
70
59
* @param UserNotifierConfig $userNotifierConfig
71
60
*/
72
61
public function __construct (
@@ -75,15 +64,13 @@ public function __construct(
75
64
StoreManagerInterface $ storeManager ,
76
65
LoggerInterface $ logger ,
77
66
UrlInterface $ url ,
78
- State $ appState ,
79
67
UserNotifierConfig $ userNotifierConfig
80
68
) {
81
69
$ this ->scopeConfig = $ scopeConfig ;
82
70
$ this ->transportBuilder = $ transportBuilder ;
83
71
$ this ->storeManager = $ storeManager ;
84
72
$ this ->logger = $ logger ;
85
73
$ this ->url = $ url ;
86
- $ this ->appState = $ appState ;
87
74
$ this ->userNotifierConfig = $ userNotifierConfig ;
88
75
}
89
76
@@ -154,14 +141,4 @@ public function sendAppConfigRequestMessage(User $user, string $token): void
154
141
$ this ->userNotifierConfig ->getAppRequestConfigUrl ($ token )
155
142
);
156
143
}
157
-
158
- /**
159
- * Determine if the environment is webapi or not
160
- *
161
- * @return bool
162
- */
163
- private function isWebapi (): bool
164
- {
165
- return in_array ($ this ->appState ->getAreaCode (), [Area::AREA_WEBAPI_REST , Area::AREA_WEBAPI_SOAP ]);
166
- }
167
144
}
0 commit comments