Commit 435ab6fb authored by David Surville's avatar David Surville
Browse files

Prise en compte des entités définies dans la config au lieu des entités de la...

Prise en compte des entités définies dans la config au lieu des entités de la bibliothèque + fichiers SQL
parent 39a49db4
Loading
Loading
Loading
Loading
Loading
−44

File deleted.

−9

File deleted.

−100

File deleted.

−5
Changes for config/merged/categorie.config.php: 0 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -38,11 +38,6 @@ return [
    'router' => [
        'routes' => [
            'unicaen-privilege' => [
                'type' => Literal::class,
                'options' => [
                    'route'    => '/unicaen-privilege',
                ],
                'may_terminate' => false,
                'child_routes' => [
                    'categorie' => [
                        'type' => Literal::class,
+46 −10
Changes for config/merged/privilege.config.php: 46 added lines, 10 removed lines.
Original line number Diff line number Diff line
@@ -19,15 +19,49 @@ return [
    'bjyauthorize' => [
        'guards' => [
            UnicaenPrivilege\Guard\PrivilegeController::class => [
                [
                    'controller' => PrivilegeController::class,
                    'action' => [
                        'index',
                    ],
                    'privileges' => [
                        PrivilegePrivileges::PRIVILEGE_VOIR,
                    ],
                ],
                [
                    'controller' => PrivilegeController::class,
                    'action' => [
                        'affecter',
                    ],
                    'privileges' => [
                        PrivilegePrivileges::PRIVILEGE_AFFECTER,
                    ],
                ],
                [
                    'controller' => PrivilegeController::class,
                    'action' => [
                        'ajouter',
                    ],
                    'privileges' => [
                        PrivilegePrivileges::PRIVILEGE_AJOUTER,
                    ],
                ],
                [
                    'controller' => PrivilegeController::class,
                    'action' => [
                        'modifier',
                    ],
                    'privileges' => [
                        PrivilegePrivileges::PRIVILEGE_MODIFIER,
                    ],
                ],
                [
                    'controller' => PrivilegeController::class,
                    'action' => [
                        'supprimer',
                    ],
                    'privileges' => [
                        PrivilegePrivileges::PRIVILEGE_AJOUTER,
                        PrivilegePrivileges::PRIVILEGE_SUPPRIMER,
                    ],
                ],
            ],
@@ -39,20 +73,24 @@ return [
            'unicaen-privilege' => [
                'type' => Literal::class,
                'options' => [
                    'route'    => '/unicaen-privilege',
                    'route' => '/privilege',
                    'defaults' => [
                        'controller' => PrivilegeController::class,
                        'action' => 'index',
                    ],
                ],
                'may_terminate' => false,
                'may_terminate' => true,
                'child_routes' => [
                    'privilege' => [
                        'type' => Literal::class,
                    'affecter' => [
                        'type' => Segment::class,
                        'options' => [
                            'route'    => '/privilege',
                            'route'    => '/affecter/:role/:privilege',
                            'defaults' => [
                                'controller' => PrivilegeController::class,
                                'action' => 'affecter',
                            ],
                        ],
                    ],
                        'may_terminate' => false,
                        'child_routes' => [
                    'ajouter' => [
                        'type' => Segment::class,
                        'options' => [
@@ -87,8 +125,6 @@ return [
            ],
        ],
    ],
        ],
    ],

    'controllers' => [
        'factories' => [
Loading