From a19cac5817c94230223c8ea431181e8358845973 Mon Sep 17 00:00:00 2001 From: aina-esokia Date: Tue, 8 May 2018 15:16:52 +0400 Subject: [PATCH] add locator to FtpJob --- lib/Alchemy/Phrasea/TaskManager/Job/FtpJob.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Alchemy/Phrasea/TaskManager/Job/FtpJob.php b/lib/Alchemy/Phrasea/TaskManager/Job/FtpJob.php index 332e501a86..7c5f6204e4 100644 --- a/lib/Alchemy/Phrasea/TaskManager/Job/FtpJob.php +++ b/lib/Alchemy/Phrasea/TaskManager/Job/FtpJob.php @@ -13,6 +13,7 @@ namespace Alchemy\Phrasea\TaskManager\Job; use ftpclient; use Alchemy\Phrasea\Application; +use Alchemy\Phrasea\Core\LazyLocator; use Alchemy\Phrasea\Application\Helper\NotifierAware; use Alchemy\Phrasea\Model\Serializer\CaptionSerializer; use Alchemy\Phrasea\Notification\Mail\MailSuccessFTPReceiver; @@ -344,6 +345,8 @@ class FtpJob extends AbstractJob private function send_mails(Application $app, FtpExport $export) { + $this->setDelivererLocator(new LazyLocator($app, 'notification.deliverer')); + $transferts = []; $transfert_status = $this->translator->trans('task::ftp:Tous les documents ont ete transferes avec succes');