[Absence] Recupération des emails expediteurs et destinataire.
This commit is contained in:
parent
00a4ad9784
commit
4a4306f1c8
2 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,7 @@ use Symfony\Component\HttpFoundation\Request;
|
|||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use YesWiki\Core\ApiResponse;
|
||||
use YesWiki\Core\Controller\AuthController;
|
||||
use YesWiki\Core\YesWikiController;
|
||||
use YesWiki\Meeo\Controle\Controle;
|
||||
use YesWiki\Meeo\Service\AbsenceManager;
|
||||
|
@ -81,8 +82,12 @@ class ApiController extends YesWikiController
|
|||
$absenceManager->create($eleve, $parameters['date_debut_absence'], $parameters['date_fin_absence'], $parameters['justification']);
|
||||
|
||||
// Récupération de l'expéditeur
|
||||
$expediteur = $this->getService(AuthController::class)->getLoggedUser()['email'];
|
||||
// echo "Expediteur : ".$expediteur."\n";
|
||||
|
||||
// Récupération du destinataire
|
||||
$destinataire = $eleve->getEmail();
|
||||
// echo "Envoyer à : ".$destinataire."\n";
|
||||
|
||||
// Génération du rendu du mail
|
||||
|
||||
|
|
|
@ -45,6 +45,10 @@ class Eleve {
|
|||
$this->data['listeListeClassesbf_classe'] = $classe;
|
||||
}
|
||||
|
||||
public function getEmail() {
|
||||
return $this->user['bf_mail'];
|
||||
}
|
||||
|
||||
public function getData() {
|
||||
return $this->data;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue