diff --git a/module/finc/src/finc/Controller/CustomTraits/AcquisitionTrait.php b/module/finc/src/finc/Controller/CustomTraits/AcquisitionTrait.php index 3ddb4d7a336cfd45ba0a21b280e1bc5db5b6c18f..4f1ee62d247ff3336976792f3c4b4a4c86680775 100644 --- a/module/finc/src/finc/Controller/CustomTraits/AcquisitionTrait.php +++ b/module/finc/src/finc/Controller/CustomTraits/AcquisitionTrait.php @@ -228,8 +228,7 @@ trait AcquisitionTrait // Get mailer $mailer = new Mailer( - $this->getServiceLocator() - ->get('VuFind\Mailer')->getTransport() + $this->serviceLocator->get('VuFind\Mailer')->getTransport() ); // Send the email diff --git a/module/finc/src/finc/Controller/CustomTraits/EmailProfileTrait.php b/module/finc/src/finc/Controller/CustomTraits/EmailProfileTrait.php index 93d678e954e1595c0efd848a38ffef2306e4be88..04b981c7ee9de0749116e0e1e9a1c76738ede4fd 100644 --- a/module/finc/src/finc/Controller/CustomTraits/EmailProfileTrait.php +++ b/module/finc/src/finc/Controller/CustomTraits/EmailProfileTrait.php @@ -54,7 +54,7 @@ trait EmailProfileTrait protected function getEmailProfile($profile) { $mailConfig - = $this->getServiceLocator()->get('VuFind\Config')->get('EmailProfiles'); + = $this->serviceLocator->get('VuFind\Config')->get('EmailProfiles'); if (isset($mailConfig->$profile)) { return $mailConfig->$profile;