-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix frontend and mail sending on the suite-nonsplit
- Loading branch information
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- ./src/Pyz/Zed/Mail/MailDependencyProvider.php 2020-07-15 10:36:13.198516641 +0000 | ||
+++ ./src/Pyz/Zed/Mail/MailDependencyProvider.php.old 2020-07-15 10:20:29.023345911 +0000 | ||
@@ -30,10 +30,6 @@ | ||
use Spryker\Zed\Oms\Communication\Plugin\Mail\OrderConfirmationMailTypePlugin; | ||
use Spryker\Zed\Oms\Communication\Plugin\Mail\OrderShippedMailTypePlugin; | ||
use Spryker\Zed\SalesInvoice\Communication\Plugin\Mail\OrderInvoiceMailTypePlugin; | ||
-use Spryker\Zed\Mail\Dependency\Mailer\MailToMailerBridge; | ||
-use Swift_Mailer; | ||
-use Swift_Message; | ||
-use Swift_SmtpTransport; | ||
|
||
class MailDependencyProvider extends SprykerMailDependencyProvider | ||
{ | ||
@@ -42,29 +38,6 @@ | ||
* | ||
* @return \Spryker\Zed\Kernel\Container | ||
*/ | ||
- | ||
- protected function addMailer(Container $container) | ||
- { | ||
- $container[static::MAILER] = function () { | ||
- $message = new Swift_Message(); | ||
- $transport = new Swift_SmtpTransport( | ||
- $this->getConfig()->getSmtpHost(), | ||
- $this->getConfig()->getSmtpPort() | ||
- ); | ||
- $transport->setHost(getenv('SMTP_HOST')); | ||
- $transport->setPort(getenv('SMTP_PORT')); | ||
- $transport->setUsername(getenv('SMTP_USER')); | ||
- $transport->setPassword(getenv('SMTP_PASS')); | ||
- $transport->setEncryption("ssl"); | ||
- | ||
- $mailer = new Swift_Mailer($transport); | ||
- | ||
- return new MailToMailerBridge($message, $mailer); | ||
- }; | ||
- | ||
- return $container; | ||
- } | ||
- | ||
public function provideBusinessLayerDependencies(Container $container) | ||
{ | ||
$container = parent::provideBusinessLayerDependencies($container); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters