Skip to content
Snippets Groups Projects
Commit 4370a91c authored by Demian Katz's avatar Demian Katz
Browse files

Renamed mailer service to VuFind\Mailer.

parent 8ee219c6
No related merge requests found
...@@ -317,7 +317,7 @@ $config = array( ...@@ -317,7 +317,7 @@ $config = array(
'VuFind\AuthManager' => 'VuFind\Auth\Manager', 'VuFind\AuthManager' => 'VuFind\Auth\Manager',
'VuFind\Cart' => 'VuFind\Cart', 'VuFind\Cart' => 'VuFind\Cart',
'VuFind\CacheManager' => 'VuFind\Cache\Manager', 'VuFind\CacheManager' => 'VuFind\Cache\Manager',
'mailer' => 'VuFind\Mailer', 'VuFind\Mailer' => 'VuFind\Mailer',
'recordloader' => 'VuFind\Record\Loader', 'recordloader' => 'VuFind\Record\Loader',
'searchspecsreader' => 'VuFind\Config\SearchSpecsReader', 'searchspecsreader' => 'VuFind\Config\SearchSpecsReader',
'sessionmanager' => 'Zend\Session\SessionManager', 'sessionmanager' => 'Zend\Session\SessionManager',
......
...@@ -307,7 +307,7 @@ class AbstractRecord extends AbstractBase ...@@ -307,7 +307,7 @@ class AbstractRecord extends AbstractBase
// Attempt to send the email and show an appropriate flash message: // Attempt to send the email and show an appropriate flash message:
try { try {
$this->getServiceLocator()->get('Mailer')->sendRecord( $this->getServiceLocator()->get('VuFind\Mailer')->sendRecord(
$view->to, $view->from, $view->message, $driver, $view->to, $view->from, $view->message, $driver,
$this->getViewRenderer() $this->getViewRenderer()
); );
......
...@@ -966,7 +966,7 @@ class AjaxController extends AbstractBase ...@@ -966,7 +966,7 @@ class AjaxController extends AbstractBase
$this->params()->fromPost('id'), $this->params()->fromPost('id'),
$this->params()->fromPost('source', 'VuFind') $this->params()->fromPost('source', 'VuFind')
); );
$this->getServiceLocator()->get('Mailer')->sendRecord( $this->getServiceLocator()->get('VuFind\Mailer')->sendRecord(
$this->params()->fromPost('to'), $this->params()->fromPost('from'), $this->params()->fromPost('to'), $this->params()->fromPost('from'),
$this->params()->fromPost('message'), $record, $this->params()->fromPost('message'), $record,
$this->getViewRenderer() $this->getViewRenderer()
...@@ -998,7 +998,7 @@ class AjaxController extends AbstractBase ...@@ -998,7 +998,7 @@ class AjaxController extends AbstractBase
// Attempt to send the email: // Attempt to send the email:
try { try {
$this->getServiceLocator()->get('Mailer')->sendLink( $this->getServiceLocator()->get('VuFind\Mailer')->sendLink(
$this->params()->fromPost('to'), $this->params()->fromPost('from'), $this->params()->fromPost('to'), $this->params()->fromPost('from'),
$this->params()->fromPost('message'), $this->params()->fromPost('message'),
$url, $this->getViewRenderer(), $this->params()->fromPost('subject') $url, $this->getViewRenderer(), $this->params()->fromPost('subject')
......
...@@ -192,7 +192,7 @@ class CartController extends AbstractBase ...@@ -192,7 +192,7 @@ class CartController extends AbstractBase
// Attempt to send the email and show an appropriate flash message: // Attempt to send the email and show an appropriate flash message:
try { try {
// If we got this far, we're ready to send the email: // If we got this far, we're ready to send the email:
$this->getServiceLocator()->get('Mailer')->sendLink( $this->getServiceLocator()->get('VuFind\Mailer')->sendLink(
$view->to, $view->from, $view->message, $view->to, $view->from, $view->message,
$url, $this->getViewRenderer(), 'bulk_email_title' $url, $this->getViewRenderer(), 'bulk_email_title'
); );
......
...@@ -99,7 +99,7 @@ class SearchController extends AbstractSearch ...@@ -99,7 +99,7 @@ class SearchController extends AbstractSearch
// Attempt to send the email and show an appropriate flash message: // Attempt to send the email and show an appropriate flash message:
try { try {
// If we got this far, we're ready to send the email: // If we got this far, we're ready to send the email:
$this->getServiceLocator()->get('Mailer')->sendLink( $this->getServiceLocator()->get('VuFind\Mailer')->sendLink(
$view->to, $view->from, $view->message, $view->to, $view->from, $view->message,
$view->url, $this->getViewRenderer() $view->url, $this->getViewRenderer()
); );
......
...@@ -121,7 +121,7 @@ class Logger extends BaseLogger implements ServiceLocatorAwareInterface ...@@ -121,7 +121,7 @@ class Logger extends BaseLogger implements ServiceLocatorAwareInterface
$error_types = isset($parts[1]) ? $parts[1] : ''; $error_types = isset($parts[1]) ? $parts[1] : '';
// use smtp // use smtp
$mailer = $this->getServiceLocator()->get('Mailer'); $mailer = $this->getServiceLocator()->get('VuFind\Mailer');
$msg = $mailer->getNewMessage() $msg = $mailer->getNewMessage()
->addFrom($config->Site->email) ->addFrom($config->Site->email)
->addTo($email) ->addTo($email)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment