Skip to content
Snippets Groups Projects
Commit acae33a3 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

ajustement

parent 0db94807
Branches
Tags
No related merge requests found
......@@ -20,8 +20,8 @@ $formation = $journee->getInstance()->getFormation();
<th style="width:8rem; text-align:left; "> Intitulé </th>
<td> <?php echo $formation->getLibelle(); ?> </td>
</tr><tr>
<th style="width:8rem; text-align:left; "> Horaire </th>
<td> <?php echo $journee->getJour()->format('d/m/Y'); ?> du <?php echo $journee->getDebut(); ?> au <?php echo $journee->getFin(); ?> </td>
<th style="width:8rem; text-align:left; "> Date </th>
<td> <?php echo $journee->getJour()->format('d/m/Y'); ?> de <?php echo $journee->getDebut(); ?> à <?php echo $journee->getFin(); ?> </td>
</tr><tr>
<th style="width:8rem; text-align:left; ">Lieu </th>
<td><?php echo $journee->getLieu(); ?></td>
......
......@@ -33,12 +33,23 @@ return [
'options' => [
'route' => 'synchroniser-all',
'defaults' => [
/** @see SynchronisationConsoleController::synchroniseAllAction() */
/** @see SynchronisationConsoleController::synchroniserAllAction() */
'controller' => SynchronisationConsoleController::class,
'action' => 'synchroniser-all'
],
],
],
'synchroniser' => [
'type' => Simple::class,
'options' => [
'route' => 'synchroniser [--name=]',
'defaults' => [
/** @see SynchronisationConsoleController::synchroniserAction() */
'controller' => SynchronisationConsoleController::class,
'action' => 'synchroniser'
],
],
],
],
],
],
......
......@@ -25,4 +25,12 @@ class SynchronisationConsoleController extends ConsoleController {
}
return "done!\n";
}
public function synchroniserAction() : string
{
$request = $this->getRequest();
$name = $request->getParam('name');
echo $this->getSynchronisationService()->synchronise($name);
return "done!\n";
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment