Commit ad235b6a authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajout de la route temporaire vers la génération de la page de garde

parent 02649803
Loading
Loading
Loading
Loading
+13
Changes for module/Application/config/others/these.config.php: 13 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ return [
                    'action'     => [
                        'roadmap',
                        'detail-identite',
                        'generate',
                    ],
                    'privileges' => ThesePrivileges::THESE_CONSULTATION_FICHE,
                    'assertion'  => 'Assertion\\These',
@@ -285,6 +286,18 @@ return [
                            ],
                        ],
                    ],
                    'generate' => [
                        'type'          => 'Segment',
                        'options'       => [
                            'route'       => '/generate/:these',
                            'constraints' => [
                                'these' => '\d+',
                            ],
                            'defaults'    => [
                                'action' => 'generate',
                            ],
                        ],
                    ],
                    'description' => [
                        'type'          => 'Segment',
                        'options'       => [
+8
Changes for module/Application/src/Application/Controller/TheseController.php: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1323,4 +1323,12 @@ class TheseController extends AbstractController implements

    }

    public function generateAction()
    {
        $these = $this->requestedThese();
        return new ViewModel(array(
            'these' => $these,
        ));
    }

}
 No newline at end of file
+1
Changes for module/Application/view/application/these/generate.phtml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
GENERATE
 No newline at end of file