diff --git a/app/library/Services.php b/app/library/Services.php index c0b0fc3..0cbf5a7 100644 --- a/app/library/Services.php +++ b/app/library/Services.php @@ -27,6 +27,7 @@ use Httpcb\Auth, Httpcb\Acl, Httpcb\Navigation, Httpcb\Menu, + Httpcb\Mail as MailService, Httpcb\ViewHelper\Volt\Extension as ViewHelperVoltExtension; use App\Listener\AclListener, @@ -386,6 +387,20 @@ class Services extends DiDefault return new \SendGrid($this->get('config')->sendgrid->key); } + /** + * Register the mail service. + * + * @return MailService + */ + protected function _initSharedMail() + { + $config = $this->get('config'); + + $sendgrid = new \SendGrid($config->sendgrid->key); + + return new MailService($sendgrid); + } + protected function _initOauth($provider) { $config = $this->get('config');