Commit a89d6b5f authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Config modularisation agrement

parent 863e09ab
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ use Agrement\Service\TblAgrementServiceFactory;
use Agrement\Service\TypeAgrementService;
use Agrement\Service\TypeAgrementServiceFactory;
use Agrement\View\Helper\AgrementVewHelperFactory;
use Agrement\View\Helper\AgrementViewHelper;
use Application\Provider\Privilege\Privileges;
use UnicaenAuth\Assertion\AssertionFactory;
use UnicaenAuth\Guard\PrivilegeController;
@@ -82,20 +81,24 @@ return [
            'child_routes' => [
                'agrement' => [
                    'route'         => '/agrement',
                    'controller'    => 'Application\Controller\Agrement',
                    'controller'    => AgrementController::class,
                    'action'        => 'index',
                    'may_terminate' => true,
                    'child_routes'  => [
                        'conseil-academique' => [
                            'route'    => '/conseil-academique',
                            'action'   => 'saisir-lot',
                            'defaults' => [
                                'typeAgrementCode' => TypeAgrement::CODE_CONSEIL_ACADEMIQUE,
                            ],
                        ],
                        'conseil-restreint'  => [
                            'route'    => '/conseil-restreint',
                            'action'   => 'saisir-lot',
                            'defaults' => [
                                'typeAgrementCode' => TypeAgrement::CODE_CONSEIL_RESTREINT,
                            ],
                        ],
                        'export-csv'         => [
                            'route'  => '/export-csv',
                            'action' => 'export-csv',
@@ -135,6 +138,7 @@ return [
                ],
            ],
        ],

        'gestion' => [
            'pages' => [
                'agrement' => [
@@ -174,6 +178,7 @@ return [
                ],
            ],
        ],

    ],

    'guards' => [