Skip to content

Commit 2a884e5

Browse files
committed
#20621: Removed deprecated method
1 parent 7b9e807 commit 2a884e5

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

lib/internal/Magento/Framework/Mail/Template/TransportBuilder.php

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -183,33 +183,20 @@ public function setReplyTo($email, $name = null)
183183
*
184184
* @param string|array $from
185185
* @return $this
186+
* @throws \Magento\Framework\Exception\MailException
186187
*/
187188
public function setFrom($from)
188189
{
189190
return $this->setFromByScope($from, null);
190191
}
191192

192-
/**
193-
* Set mail from address by store
194-
*
195-
* @deprecated Use setFromByScope
196-
* @see setFromByScope()
197-
*
198-
* @param string|array $from
199-
* @param string|int $store
200-
* @return $this
201-
*/
202-
public function setFromByStore($from, $store = null)
203-
{
204-
return $this->setFromByScope($from, $store);
205-
}
206-
207193
/**
208194
* Set mail from address by scopeId
209195
*
210196
* @param string|array $from
211197
* @param string|int $scopeId
212198
* @return $this
199+
* @throws \Magento\Framework\Exception\MailException
213200
*/
214201
public function setFromByScope($from, $scopeId = null)
215202
{
@@ -270,6 +257,7 @@ public function setTemplateOptions($templateOptions)
270257
* Get mail transport
271258
*
272259
* @return \Magento\Framework\Mail\TransportInterface
260+
* @throws LocalizedException
273261
*/
274262
public function getTransport()
275263
{

0 commit comments

Comments
 (0)