motif-modification-service.config.php 3.89 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

namespace Application;

use Application\Provider\Privilege\Privileges;
use UnicaenAuth\Guard\PrivilegeController;

return [
    'router'          => [
        'routes' => [
            'motif-modification-service' => [
                'type'          => 'Literal',
                'options'       => [
                    'route'    => '/motif-modification-service',
                    'defaults' => [
16
17
                        'controller' => 'Application\Controller\MotifModificationService',
                        'action'     => 'index',
18
19
20
21
                    ],
                ],
                'may_terminate' => true,
                'child_routes'  => [
22
                    'delete' => [
23
24
                        'type'    => 'Segment',
                        'options' => [
25
                            'route'       => '/delete/:motifModificationServiceDu',
26
27
28
29
30
31
32
33
34
35
36
                            'constraints' => [
                                'motif-modification-service' => '[0-9]*',
                            ],
                            'defaults'    => [
                                'action' => 'delete',
                            ],
                        ],
                    ],
                    'saisie' => [
                        'type'    => 'Segment',
                        'options' => [
37
                            'route'       => '/saisie/[:motifModificationServiceDu]',
38
39
40
41
42
43
44
45
46
47
48
49
                            'constraints' => [
                                'motif-modification-service' => '[0-9]*',
                            ],
                            'defaults'    => [
                                'action' => 'saisie',
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
50
    'navigation'      => [
51
52
53
54
55
56
        'default' => [
            'home' => [
                'pages' => [
                    'administration' => [
                        'pages' => [
                            'motif-modification-service' => [
57
                                'label'        => 'Motifs de modification du service dû',
58
59
60
61
62
63
64
65
66
67
68
                                'icon'         => 'fa fa-graduation-cap',
                                'route'        => 'motif-modification-service',
                                'resource'     => PrivilegeController::getResourceId('Application\Controller\MotifModificationService', 'index'),
                                'order'        => 80,
                                'border-color' => '#BBCF55',
                            ],
                        ],
                    ],
                ],
            ],
        ],
69
    ],
70
71
72
73
74
75
76
77
78
79
    'bjyauthorize'    => [
        'guards' => [
            PrivilegeController::class => [
                [
                    'controller' => 'Application\Controller\MotifModificationService',
                    'action'     => ['index'],
                    'privileges' => Privileges::MOTIFS_MODIFICATION_SERVICE_DU_VISUALISATION,
                ],
                [
                    'controller' => 'Application\Controller\MotifModificationService',
80
                    'action'     => ['saisie', 'delete'],
81
82
83
84
85
86
87
88
89
90
91
92
                    'privileges' => Privileges::MOTIFS_MODIFICATION_SERVICE_DU_EDITION,
                ],
            ],
        ],
    ],
    'controllers'     => [
        'invokables' => [
            'Application\Controller\MotifModificationService' => Controller\MotifModificationServiceController::class,
        ],
    ],
    'service_manager' => [
        'invokables' => [
93
            Service\MotifModificationServiceService::class => Service\MotifModificationServiceService::class,
94
95
96
97
98
99
        ],
    ],
    'view_helpers'    => [
    ],
    'form_elements'   => [
        'invokables' => [
100
            Form\MotifModificationService\MotifModificationServiceSaisieForm::class => Form\MotifModificationService\MotifModificationServiceSaisieForm::class,
101
102
103
        ],
    ],
];