File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
app/code/Magento/Email/Model Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,11 @@ public function __construct(
141
141
$ this ->logger = $ logger ?: ObjectManager::getInstance ()->get (LoggerInterface::class);
142
142
}
143
143
144
+ /**
145
+ * Get the LaminasTransport based on the configuration.
146
+ *
147
+ * @return LaminasTransportInterface
148
+ */
144
149
public function getTransport (): LaminasTransportInterface
145
150
{
146
151
if ($ this ->laminasTransport === null ) {
@@ -189,6 +194,11 @@ public function getMessage()
189
194
return $ this ->message ;
190
195
}
191
196
197
+ /**
198
+ * Create a Smtp LaminasTransport.
199
+ *
200
+ * @return Smtp
201
+ */
192
202
private function createSmtpTransport (): Smtp
193
203
{
194
204
$ host = $ this ->scopeConfig ->getValue (
@@ -221,7 +231,6 @@ private function createSmtpTransport(): Smtp
221
231
ScopeInterface::SCOPE_STORE
222
232
);
223
233
224
-
225
234
$ options = [
226
235
'name ' => 'localhost ' ,
227
236
'host ' => $ host ,
@@ -244,7 +253,8 @@ private function createSmtpTransport(): Smtp
244
253
}
245
254
246
255
/**
247
- * @param $parameters
256
+ * Create a Sendmail Laminas Transport
257
+ *
248
258
* @return Sendmail
249
259
*/
250
260
private function createSendmailTransport (): Sendmail
You can’t perform that action at this time.
0 commit comments