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(
141141 $ this ->logger = $ logger ?: ObjectManager::getInstance ()->get (LoggerInterface::class);
142142 }
143143
144+ /**
145+ * Get the LaminasTransport based on the configuration.
146+ *
147+ * @return LaminasTransportInterface
148+ */
144149 public function getTransport (): LaminasTransportInterface
145150 {
146151 if ($ this ->laminasTransport === null ) {
@@ -189,6 +194,11 @@ public function getMessage()
189194 return $ this ->message ;
190195 }
191196
197+ /**
198+ * Create a Smtp LaminasTransport.
199+ *
200+ * @return Smtp
201+ */
192202 private function createSmtpTransport (): Smtp
193203 {
194204 $ host = $ this ->scopeConfig ->getValue (
@@ -221,7 +231,6 @@ private function createSmtpTransport(): Smtp
221231 ScopeInterface::SCOPE_STORE
222232 );
223233
224-
225234 $ options = [
226235 'name ' => 'localhost ' ,
227236 'host ' => $ host ,
@@ -244,7 +253,8 @@ private function createSmtpTransport(): Smtp
244253 }
245254
246255 /**
247- * @param $parameters
256+ * Create a Sendmail Laminas Transport
257+ *
248258 * @return Sendmail
249259 */
250260 private function createSendmailTransport (): Sendmail
You can’t perform that action at this time.
0 commit comments