Select Git revision
VolumeHoraireList tests.php
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ExportRhController.php 7.70 KiB
<?php
namespace ExportRh\Controller;
use Application\Controller\AbstractController;
use Application\Service\Traits\ContextServiceAwareTrait;
use Application\Service\Traits\DossierServiceAwareTrait;
use ExportRh\Form\ExportRhForm;
use ExportRh\Form\Traits\ExportRhFormAwareTrait;
use ExportRh\Service\ExportRhService;
use ExportRh\Service\ExportRhServiceAwareTrait;
use UnicaenSiham\Exception\SihamException;
class ExportRhController extends AbstractController
{
use ExportRhServiceAwareTrait;
use ContextServiceAwareTrait;
use DossierServiceAwareTrait;
use ExportRhFormAwareTrait;
/**
* @var ExportRhService $exportRhService
*/
protected $exportRhService;
public function __construct(ExportRhService $exportRhService)
{
$this->exportRhService = $exportRhService;
}
public function indexAction()
{
return [];
}
public function chercherIntervenantRhAction(): array
{
$connecteurRh = $this->getExportRhService();
$params = [
'nomUsuel' => '',
'prenom' => '',
];
$listIntervenantRh = [];
try {
if ($this->getRequest()->isPost()) {
$nomUsuel = $this->getRequest()->getPost('nomUsuel');
$prenom = $this->getRequest()->getPost('prenom');
$insee = $this->getRequest()->getPost('insee');
$listIntervenantRh = $connecteurRh->getListIntervenantRh($nomUsuel, $prenom, $insee);
}
} catch (SihamException $e) {
$this->flashMessenger()->addErrorMessage($e->getMessage());
}
return compact('listIntervenantRh');
}