Commit a19b79b9 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Travail sur la config

parent cff0cb6e
Loading
Loading
Loading
Loading
+2 −1
Changes for module/Application/config/intervenant.config.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ namespace Application;
use Application\Entity\Db\WfEtape;
use Application\Provider\Privilege\Privileges;
use Contrat\Controller\ContratController;
use Paiement\Controller\PaiementController;
use UnicaenPrivilege\Guard\PrivilegeController;
use UnicaenPrivilege\Provider\Rule\PrivilegeRuleProvider;

@@ -197,7 +198,7 @@ return [
                        'options'       => [
                            'route'    => '/:intervenant/mise-en-paiement',
                            'defaults' => [
                                'controller' => 'Application\Controller\Paiement',
                                'controller' =>     PaiementController::class,
                            ],
                        ],
                        'child_routes'  => [
+34 −106
Changes for module/Paiement/config/budget.config.php: 34 added lines, 106 removed lines.
Original line number Diff line number Diff line
<?php

namespace Application;
namespace Paiement;

use Application\Provider\Privilege\Privileges;
use UnicaenPrivilege\Guard\PrivilegeController;
use UnicaenPrivilege\Provider\Rule\PrivilegeRuleProvider;

return [
    'router'          => [
    'routes' => [
        'budget' => [
                'type'          => 'Literal',
                'may_terminate' => true,
                'options'       => [
            'route'         => '/budget',
                    'defaults' => [
                        'controller' => 'Application\Controller\Budget',
            'controller'    => Controller\BudgetController::class,
            'action'        => 'index',
            'privileges'    => [
                Privileges::BUDGET_VISUALISATION,
            ],
                ],
            'may_terminate' => true,
            'child_routes'  => [
                'engagements-liquidation' => [
                        'type'          => 'Segment',
                        'may_terminate' => true,
                        'options'       => [
                    'route'       => '/engagements-liquidation[/:structure]',
                            'defaults'    => [
                    'action'      => 'engagements-liquidation',
                            ],
                    'constraints' => [
                        'structure' => '[0-9]*',
                    ],
                    'privileges'  => [
                        Privileges::BUDGET_VISUALISATION,
                    ],
                ],
                'tableau-de-bord'         => [
                        'type'          => 'Literal',
                        'may_terminate' => true,
                        'options'       => [
                    'route'      => '/tableau-de-bord',
                            'defaults' => [
                    'action'     => 'tableau-de-bord',
                    'privileges' => [
                        Privileges::BUDGET_VISUALISATION,
                    ],
                        ],
                    'assertion'  => \Paiement\Assertion\BudgetAssertion::class,
                ],
                'export'                  => [
                        'type'          => 'Segment',
                        'may_terminate' => true,
                        'options'       => [
                    'route'       => '/export[/:structure]',
                            'defaults'    => [
                    'action'      => 'export',
                            ],
                    'constraints' => [
                        'structure' => '[0-9]*',
                    ],
                    'privileges'  => [
                        Privileges::BUDGET_EXPORT,
                    ],
                ],
                'get-json'                => [
                        'type'          => 'Segment',
                        'may_terminate' => true,
                        'options'       => [
                    'route'       => '/get-json[/:structure]',
                            'defaults'    => [
                    'action'      => 'get-json',
                            ],
                    'constraints' => [
                        'structure' => '[0-9]*',
                    ],
                    'privileges'  => [
                        Privileges::BUDGET_VISUALISATION,
                        Privileges::MISE_EN_PAIEMENT_DEMANDE,
                    ],
                ],
                'saisie-dotation'         => [
                        'type'          => 'Segment',
                        'may_terminate' => true,
                        'options'       => [
                    'route'       => '/saisie-dotation/:annee/:structure/:typeRessource/[:dotation1]/[:dotation2]',
                            'defaults'    => [
                    'action'      => 'saisie-dotation',
                            ],
                    'constraints' => [
                        'annee'         => '[0-9]*',
                        'structure'     => '[0-9]*',
@@ -84,16 +65,16 @@ return [
                        //'dotation1'     => '[0-9]*',
                        //'dotation2'     => '[0-9]*',
                    ],
                    'privileges'  => [
                        Privileges::BUDGET_EDITION_ENGAGEMENT_COMPOSANTE,
                        Privileges::BUDGET_EDITION_ENGAGEMENT_ETABLISSEMENT,
                    ],
                ],
            ],
        ],
    ],
    ],

    'navigation' => [
        'default' => [
            'home' => [
                'pages' => [
        'gestion' => [
            'pages' => [
                'budget' => [
@@ -101,7 +82,7 @@ return [
                    'title'    => 'Budget',
                    'icon'     => 'fas fa-eur',
                    'route'    => 'budget',
                                'resource'     => PrivilegeController::getResourceId('Application\Controller\Budget', 'index'),
                    'resource' => PrivilegeController::getResourceId(Controller\BudgetController::class, 'index'),
                    'order'    => 30,
                    'color'    => '#EB4995',
                    'pages'    => [
@@ -109,91 +90,40 @@ return [
                            'label'    => 'Tableau de bord',
                            'title'    => 'Tableau de bord',
                            'route'    => 'budget/tableau-de-bord',
                                        'resource' => PrivilegeController::getResourceId('Application\Controller\Budget', 'tableau-de-bord'),
                            'resource' => PrivilegeController::getResourceId(Controller\BudgetController::class, 'tableau-de-bord'),
                        ],
                        'engagements-liquidation' => [
                            'label'    => 'Engagements & liquidation',
                            'title'    => 'Engagements & liquidation',
                            'route'    => 'budget/engagements-liquidation',
                                        'resource' => PrivilegeController::getResourceId('Application\Controller\Budget', 'engagements-liquidation'),
                            'resource' => PrivilegeController::getResourceId(Controller\BudgetController::class, 'engagements-liquidation'),
                        ],
                        'export'                  => [
                            'label'    => 'Export des données de paiement (CSV)',
                            'title'    => 'Export des données de paiement (CSV)',
                            'route'    => 'budget/export',
                                        'resource' => PrivilegeController::getResourceId('Application\Controller\Budget', 'export'),
                                    ],
                                ],
                            'resource' => PrivilegeController::getResourceId(Controller\BudgetController::class, 'export'),
                        ],
                    ],
                ],
            ],
        ],
    ],
    ],
    'bjyauthorize'    => [

    'guards' => [
            PrivilegeController::class => [
        [
                    'controller' => 'Application\Controller\Budget',
                    'action'     => ['index'],
                    'privileges' => [
                        Privileges::BUDGET_VISUALISATION,
                    ],
                ],
                [
                    'controller' => 'Application\Controller\Budget',
                    'action'     => ['tableau-de-bord'],
                    'privileges' => [
                        Privileges::BUDGET_VISUALISATION,
                    ],
                    'assertion'  => \Paiement\Assertion\BudgetAssertion::class,
                ],
                [
                    'controller' => 'Application\Controller\Budget',
                    'action'     => ['engagements-liquidation'],
                    'privileges' => [
                        Privileges::BUDGET_VISUALISATION,
                    ],
                ],
                [
                    'controller' => 'Application\Controller\Budget',
                    'action'     => ['export'],
                    'privileges' => [
                        Privileges::BUDGET_EXPORT,
                    ],
                ],
                [
                    'controller' => 'Application\Controller\Budget',
                    'action'     => ['get-json'],
                    'privileges' => [
                        Privileges::BUDGET_VISUALISATION,
                        Privileges::MISE_EN_PAIEMENT_DEMANDE,
                    ],
                ],
                [
                    'controller' => 'Application\Controller\Budget',
                    'action'     => ['saisie-dotation'],
                    'privileges' => [
                        Privileges::BUDGET_EDITION_ENGAGEMENT_COMPOSANTE,
                        Privileges::BUDGET_EDITION_ENGAGEMENT_ETABLISSEMENT,
                    ],
                ],
                [
                    'controller' => 'Application\Controller\Budget',
            'controller' => Controller\BudgetController::class,
            'action'     => ['type-dotation'],
            'privileges' => [Privileges::BUDGET_TYPE_DOTATION_VISUALISATION],
        ],
        [
                    'controller' => 'Application\Controller\Budget',
            'controller' => Controller\BudgetController::class,
            'action'     => ['type-dotation-saisie', 'type-dotation-delete'],
            'privileges' => [Privileges::BUDGET_TYPE_DOTATION_EDITION],
        ],
    ],
        ],
        'rule_providers' => [
            PrivilegeRuleProvider::class => [
                'allow' => [

    'rules' => [
        [
            'privileges' => [
                Privileges::BUDGET_EDITION_ENGAGEMENT_COMPOSANTE,
@@ -203,26 +133,24 @@ return [
            'assertion'  => \Paiement\Assertion\BudgetAssertion::class,
        ],
    ],
            ],
        ],
    ],
    'form_elements'   => [

    'forms' => [
        'invokables' => [
            \Paiement\Form\Budget\DotationSaisieForm::class => \Paiement\Form\Budget\DotationSaisieForm::class,
        ],
    ],
    'service_manager' => [

    'services' => [
        'invokables'                               => [
            \Paiement\Service\TypeRessourceService::class => \Paiement\Service\TypeRessourceService::class,
            \Paiement\Service\DotationService::class      => \Paiement\Service\DotationService::class,
        ],
        'factories'  => [
        \Paiement\Assertion\BudgetAssertion::class => \UnicaenPrivilege\Assertion\AssertionFactory::class,
    ],
    ],

    'controllers' => [
        'invokables' => [
            'Application\Controller\Budget' => \Paiement\Controller\BudgetController::class,
            Controller\BudgetController::class => Controller\BudgetController::class,
        ],
    ],
];
 No newline at end of file
+19 −66
Changes for module/Paiement/config/centre-cout.config.php: 19 added lines, 66 removed lines.
Original line number Diff line number Diff line
<?php

namespace Application;
namespace Paiement;

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

return [
    'router' => [
    'routes' => [
        'centre-cout-activite' => [
                'type'          => 'Literal',
                'options'       => [
            'route'      => '/centre-cout-activite',
                    'defaults' => [
                        'controller' => 'Application\Controller\CentreCout',
            'controller' => Controller\CentreCoutController::class,
            'action'     => 'centre-cout-activite',
        ],
                ],
        'may_terminate'        => true,
        'child_routes'         => [
            'delete' => [
                        'type'    => 'Segment',
                        'options' => [
                'route'       => '/delete/:ccActivite',
                'action'      => 'centre-cout-activite-delete',
                'constraints' => [
                    'ccActivite' => '[0-9]*',
                ],
                            'defaults'    => [
                                'action' => 'centre-cout-activite-delete',
                            ],
                        ],
            ],
            'saisie' => [
                        'type'    => 'Segment',
                'options' => [
                    'route'       => '/saisie/[:ccActivite]',
                    'action'      => 'centre-cout-activite-saisie',
                    'constraints' => [
                        'ccActivite' => '[0-9]*',
                    ],
                            'defaults'    => [
                                'action' => 'centre-cout-activite-saisie',
                            ],
                        ],
                ],
            ],
        ],

        'centre-cout' => [
                'type'          => 'Literal',
                'options'       => [
            'route'         => '/centre-cout',
                    'defaults' => [
                        'controller' => 'Application\Controller\CentreCout',
            'controller'    => Controller\CentreCoutController::class,
            'action'        => 'index',
                    ],
                ],
            'may_terminate' => true,
            'child_routes'  => [
                'delete'           => [
                        'type'    => 'Segment',
                        'options' => [
                    'route'       => '/delete/:centreCout',
                    'action'      => 'delete',
                    'constraints' => [
                        'centreCout' => '[0-9]*',
                    ],
                            'defaults'    => [
                                'action' => 'delete',
                            ],
                        ],
                ],
                'saisie'           => [
                        'type'    => 'Segment',
                        'options' => [
                    'route'       => '/saisie/[:centreCout]',
                    'action'      => 'saisie',
                    'constraints' => [
                        'centreCout' => '[0-9]*',
                    ],
                            'defaults'    => [
                                'action' => 'saisie',
                            ],
                        ],
                ],
                'delete-structure' => [
                        'type'    => 'Segment',
                        'options' => [
                    'route'       => '/delete-structure/:centreCoutStructure',
                    'action'      => 'delete-structure',
                    'constraints' => [
                        'centreCoutStructure' => '[0-9]*',
                    ],
                            'defaults'    => [
                                'action' => 'delete-structure',
                            ],
                        ],
                ],
                'saisie-structure' => [
                        'type'    => 'Segment',
                        'options' => [
                    'route'       => '/saisie-structure/:centreCout/[:centreCoutStructure]',
                    'action'      => 'saisie-structure',
                    'constraints' => [
                        'centreCout'          => '[0-9]*',
                        'centreCoutStructure' => '[0-9]*',
                    ],
                            'defaults'    => [
                                'action' => 'saisie-structure',
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],

    'navigation' => [
        'default' => [
            'home' => [
                'pages' => [
        'administration' => [
            'pages' => [
                'finances' => [
@@ -122,14 +79,14 @@ return [
                        'centre-cout'          => [
                            'label'    => 'Centres de coûts',
                            'route'    => 'centre-cout',
                                        'resource'     => PrivilegeController::getResourceId('Application\Controller\CentreCout', 'index'),
                            'resource' => PrivilegeController::getResourceId(Controller\CentreCoutController::class, 'index'),
                            'order'    => 10,
                            'color'    => '#BBCF55',
                        ],
                        'centre-cout-activite' => [
                            'label'    => 'Types d\'activités des centres de coûts',
                            'route'    => 'centre-cout-activite',
                                        'resource'     => PrivilegeController::getResourceId('Application\Controller\CentreCout', 'index'),
                            'resource' => PrivilegeController::getResourceId(Controller\CentreCoutController::class, 'index'),
                            'order'    => 40,
                            'color'    => '#BBCF55',
                        ],
@@ -138,39 +95,35 @@ return [
            ],
        ],
    ],
            ],
        ],
    ],

    'bjyauthorize'    => [
    'guards' => [
            PrivilegeController::class => [
        [
                    'controller' => 'Application\Controller\CentreCout',
            'controller' => Controller\CentreCoutController::class,
            'action'     => ['index', 'centre-cout-activite'],
            'privileges' => Privileges::CENTRES_COUTS_ADMINISTRATION_VISUALISATION,
        ],
        [
                    'controller' => 'Application\Controller\CentreCout',
            'controller' => Controller\CentreCoutController::class,
            'action'     => ['saisie', 'delete', 'saisie-structure', 'delete-structure', 'centre-cout-activite-delete', 'centre-cout-activite-saisie'],
            'privileges' => Privileges::CENTRES_COUTS_ADMINISTRATION_EDITION,
        ],
    ],
        ],
    ],

    'controllers' => [
        'invokables' => [
            'Application\Controller\CentreCout' => \Paiement\Controller\CentreCoutController::class,
            Controller\CentreCoutController::class => Controller\CentreCoutController::class,
        ],
    ],
    'service_manager' => [

    'services' => [
        'invokables' => [
            \Paiement\Service\CentreCoutService::class          => \Paiement\Service\CentreCoutService::class,
            \Paiement\Service\CentreCoutStructureService::class => \Paiement\Service\CentreCoutStructureService::class,
            \Paiement\Service\CcActiviteService::class          => \Paiement\Service\CcActiviteService::class,
        ],
    ],
    'form_elements'   => [

    'forms' => [
        'invokables' => [
            \Paiement\Form\CentreCout\CentreCoutSaisieForm::class         => \Paiement\Form\CentreCout\CentreCoutSaisieForm::class,
            Form\CentreCout\CentreCoutStructureSaisieForm::class          => Form\CentreCout\CentreCoutStructureSaisieForm::class,
+17 −69

File changed.

Preview size limit exceeded, changes collapsed.

+16 −37
Changes for module/Paiement/config/motif-non-paiement.config.php: 16 added lines, 37 removed lines.
Original line number Diff line number Diff line
<?php

namespace Application;
namespace Paiement;

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

return [
    'router'          => [
    'routes' => [
        'motif-non-paiement' => [
                'type'          => 'Literal',
                'options'       => [
            'route'         => '/motif-non-paiement',
                    'defaults' => [
                        'controller' => 'Application\Controller\MotifNonPaiement',
            'controller'    => Controller\MotifNonPaiementController::class,
            'action'        => 'index',
                    ],
                ],
            'may_terminate' => true,
            'child_routes'  => [
                'supprimer' => [
                        'type'    => 'Segment',
                        'options' => [
                    'route'       => '/supprimer/:motifNonPaiement',
                    'action'      => 'supprimer',
                    'constraints' => [
                        'motifNonPaiement' => '[0-9]*',
                    ],
                            'defaults'    => [
                                'action' => 'supprimer',
                            ],
                        ],
                ],
                'saisir'    => [
                        'type'    => 'Segment',
                        'options' => [
                    'route'       => '/saisir/[:motifNonPaiement]',
                    'action'      => 'saisir',
                    'constraints' => [
                        'motifNonPaiement' => '[0-9]*',
                    ],
                            'defaults'    => [
                                'action' => 'saisir',
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],

    'navigation' => [
        'default' => [
            'home' => [
                'pages' => [
        'administration' => [
            'pages' => [
                'rh' => [
@@ -58,7 +39,7 @@ return [
                        'motif-non-paiement' => [
                            'label'    => 'Motifs de non paiement',
                            'route'    => 'motif-non-paiement',
                                        'resource'     => PrivilegeController::getResourceId('Application\Controller\MotifNonPaiement', 'index'),
                            'resource' => PrivilegeController::getResourceId(Controller\MotifNonPaiementController::class, 'index'),
                            'order'    => 50,
                            'color'    => '#BBCF55',
                        ],
@@ -67,38 +48,36 @@ return [
            ],
        ],
    ],
            ],
        ],
    ],
    'bjyauthorize'    => [

    'guards' => [
            PrivilegeController::class => [
        [
                    'controller' => 'Application\Controller\MotifNonPaiement',
            'controller' => Controller\MotifNonPaiementController::class,
            'action'     => ['index'],
            'privileges' => Privileges::MOTIF_NON_PAIEMENT_ADMINISTRATION_VISUALISATION,
        ],
        [
                    'controller' => 'Application\Controller\MotifNonPaiement',
            'controller' => Controller\MotifNonPaiementController::class,
            'action'     => ['saisir', 'supprimer'],
            'privileges' => Privileges::MOTIF_NON_PAIEMENT_ADMINISTRATION_EDITION,
        ],
    ],
        ],
    ],

    'controllers' => [
        'invokables' => [
            'Application\Controller\MotifNonPaiement' => \Paiement\Controller\MotifNonPaiementController::class,
            Controller\MotifNonPaiementController::class => Controller\MotifNonPaiementController::class,
        ],
    ],
    'service_manager' => [

    'services' => [
        'invokables' => [
            \Paiement\Service\MotifNonPaiementService::class => \Paiement\Service\MotifNonPaiementService::class,
        ],
    ],

    'view_helpers' => [
    ],
    'form_elements'   => [

    'forms' => [
        'invokables' => [
            Form\MotifNonPaiement\Saisie::class => \Paiement\Form\MotifNonPaiement\MotifNonPaiementSaisieForm::class,
        ],
Loading