Loading module/Application/src/Application/Service/Notification/NotificationServiceFactory.php +13 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,8 @@ namespace Application\Service\Notification; use Application\Service\Agent\AgentService; use Application\Service\Url\UrlService; use Interop\Container\ContainerInterface; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; use UnicaenMail\Service\Mail\MailService; use UnicaenParametre\Service\Parametre\ParametreService; use UnicaenRenderer\Service\Rendu\RenduService; Loading @@ -12,6 +14,10 @@ use UnicaenRenderer\Service\Rendu\RenduService; class NotificationServiceFactory { /** * @throws NotFoundExceptionInterface * @throws ContainerExceptionInterface */ public function __invoke(ContainerInterface $container): NotificationService { /** Loading @@ -27,6 +33,13 @@ class NotificationServiceFactory $renduService = $container->get(RenduService::class); $urlService = $container->get(UrlService::class); $config = $container->get('Configuration')['unicaen-mail']; if (isset($config['redirect_to'])) $mailService->setRedirectTo($config['redirect_to']); if (isset($config['do_not_send'])) $mailService->setDoNotSend($config['do_not_send']); if (isset($config['subject_prefix'])) $mailService->setSubjectPrefix($config['subject_prefix']); if (isset($config['from_name'])) $mailService->setFromName($config['from_name']); if (isset($config['from_email'])) $mailService->setFromEmail($config['from_email']); $service = new NotificationService(); $service->setAgentService($agentService); $service->setMailService($mailService); Loading module/Application/view/application/index/partial/ficheposte.phtml +8 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,14 @@ use Application\Entity\Db\Agent; <ul> <?php foreach ($affectations as $affectation) : ?> <li> <?php if ($affectation->getStructure()) : ?> <?php echo $affectation->getStructure()->getLibelleCourt(); ?> <?php else : ?> <span class="text-warning"> <span class="icon icon-attention"></span> Aucune structure d'affectation </span> <?php endif; ?> </li> <?php endforeach; ?> </ul> Loading module/EntretienProfessionnel/src/EntretienProfessionnel/Service/Notification/NotificationServiceFactory.php +13 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,8 @@ use Application\Service\Agent\AgentService; use EntretienProfessionnel\Service\Campagne\CampagneService; use EntretienProfessionnel\Service\Url\UrlService; use Interop\Container\ContainerInterface; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; use Structure\Service\Structure\StructureService; use UnicaenMail\Service\Mail\MailService; use UnicaenParametre\Service\Parametre\ParametreService; Loading @@ -14,6 +16,10 @@ use UnicaenRenderer\Service\Rendu\RenduService; class NotificationServiceFactory { /** * @throws NotFoundExceptionInterface * @throws ContainerExceptionInterface */ public function __invoke(ContainerInterface $container): NotificationService { /** Loading @@ -33,6 +39,13 @@ class NotificationServiceFactory $structureService = $container->get(StructureService::class); $urlService = $container->get(UrlService::class); $config = $container->get('Configuration')['unicaen-mail']; if (isset($config['redirect_to'])) $mailService->setRedirectTo($config['redirect_to']); if (isset($config['do_not_send'])) $mailService->setDoNotSend($config['do_not_send']); if (isset($config['subject_prefix'])) $mailService->setSubjectPrefix($config['subject_prefix']); if (isset($config['from_name'])) $mailService->setFromName($config['from_name']); if (isset($config['from_email'])) $mailService->setFromEmail($config['from_email']); $service = new NotificationService(); $service->setAgentService($agentService); $service->setCampagneService($campagneService); Loading module/Formation/config/module.config.php +1 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ return [ * Adresses des redirections si do_not_send est à true */ 'redirect_to' => ['jean-philippe.metivier@unicaen.fr', ], 'do_not_send' => true, 'do_not_send' => false, 'subject_prefix' => 'Mes formations (test)', 'from_name' => 'mes-formations.unicaen.fr | Application de gestion des formations du personnel', Loading Loading
module/Application/src/Application/Service/Notification/NotificationServiceFactory.php +13 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,8 @@ namespace Application\Service\Notification; use Application\Service\Agent\AgentService; use Application\Service\Url\UrlService; use Interop\Container\ContainerInterface; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; use UnicaenMail\Service\Mail\MailService; use UnicaenParametre\Service\Parametre\ParametreService; use UnicaenRenderer\Service\Rendu\RenduService; Loading @@ -12,6 +14,10 @@ use UnicaenRenderer\Service\Rendu\RenduService; class NotificationServiceFactory { /** * @throws NotFoundExceptionInterface * @throws ContainerExceptionInterface */ public function __invoke(ContainerInterface $container): NotificationService { /** Loading @@ -27,6 +33,13 @@ class NotificationServiceFactory $renduService = $container->get(RenduService::class); $urlService = $container->get(UrlService::class); $config = $container->get('Configuration')['unicaen-mail']; if (isset($config['redirect_to'])) $mailService->setRedirectTo($config['redirect_to']); if (isset($config['do_not_send'])) $mailService->setDoNotSend($config['do_not_send']); if (isset($config['subject_prefix'])) $mailService->setSubjectPrefix($config['subject_prefix']); if (isset($config['from_name'])) $mailService->setFromName($config['from_name']); if (isset($config['from_email'])) $mailService->setFromEmail($config['from_email']); $service = new NotificationService(); $service->setAgentService($agentService); $service->setMailService($mailService); Loading
module/Application/view/application/index/partial/ficheposte.phtml +8 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,14 @@ use Application\Entity\Db\Agent; <ul> <?php foreach ($affectations as $affectation) : ?> <li> <?php if ($affectation->getStructure()) : ?> <?php echo $affectation->getStructure()->getLibelleCourt(); ?> <?php else : ?> <span class="text-warning"> <span class="icon icon-attention"></span> Aucune structure d'affectation </span> <?php endif; ?> </li> <?php endforeach; ?> </ul> Loading
module/EntretienProfessionnel/src/EntretienProfessionnel/Service/Notification/NotificationServiceFactory.php +13 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,8 @@ use Application\Service\Agent\AgentService; use EntretienProfessionnel\Service\Campagne\CampagneService; use EntretienProfessionnel\Service\Url\UrlService; use Interop\Container\ContainerInterface; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; use Structure\Service\Structure\StructureService; use UnicaenMail\Service\Mail\MailService; use UnicaenParametre\Service\Parametre\ParametreService; Loading @@ -14,6 +16,10 @@ use UnicaenRenderer\Service\Rendu\RenduService; class NotificationServiceFactory { /** * @throws NotFoundExceptionInterface * @throws ContainerExceptionInterface */ public function __invoke(ContainerInterface $container): NotificationService { /** Loading @@ -33,6 +39,13 @@ class NotificationServiceFactory $structureService = $container->get(StructureService::class); $urlService = $container->get(UrlService::class); $config = $container->get('Configuration')['unicaen-mail']; if (isset($config['redirect_to'])) $mailService->setRedirectTo($config['redirect_to']); if (isset($config['do_not_send'])) $mailService->setDoNotSend($config['do_not_send']); if (isset($config['subject_prefix'])) $mailService->setSubjectPrefix($config['subject_prefix']); if (isset($config['from_name'])) $mailService->setFromName($config['from_name']); if (isset($config['from_email'])) $mailService->setFromEmail($config['from_email']); $service = new NotificationService(); $service->setAgentService($agentService); $service->setCampagneService($campagneService); Loading
module/Formation/config/module.config.php +1 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ return [ * Adresses des redirections si do_not_send est à true */ 'redirect_to' => ['jean-philippe.metivier@unicaen.fr', ], 'do_not_send' => true, 'do_not_send' => false, 'subject_prefix' => 'Mes formations (test)', 'from_name' => 'mes-formations.unicaen.fr | Application de gestion des formations du personnel', Loading