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

Merge branch 'development'

parents 4c28bac1 900e23c7
Loading
Loading
Loading
Loading
+1 −2
Changes for composer.json: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
        "unicaen/app":                  "^1.2",
        "unicaen/auth":                 "^1.2",
        "unicaen/ldap":                 "^2.2",
        "unicaen/octopus":              "^0.2.0"
        "unicaen/octopus":              "^0.6.0"
    },
    "require-dev": {
        "unicaen/code":                         "^1.0",
@@ -19,5 +19,4 @@
        "phpunit/PHPUnit":                      ">=3.7",
        "zendframework/zend-developer-tools":   ">=1.0"
    }

}
+5 −4
Changes for composer.lock: 5 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
        "This file is @generated automatically"
    ],
    "content-hash": "755305381140989078e604b92659e437",
    "content-hash": "235a5bfca20e9fda8157b07ca032fb33",
    "packages": [
        {
            "name": "bjyoungblood/bjy-authorize",
@@ -1521,11 +1521,11 @@
        },
        {
            "name": "unicaen/octopus",
            "version": "0.1",
            "version": "0.6.0",
            "source": {
                "type": "git",
                "url": "https://git.unicaen.fr/lib/unicaen/octopus.git",
                "reference": "9802714d7b5640ec1678c8d3d800a5a3986ae703"
                "reference": "09be53cea912d2df086b9d24e57db5efe771d65e"
            },
            "require": {
                "bjyoungblood/bjy-authorize": ">=1.4",
@@ -1545,7 +1545,7 @@
                ]
            },
            "description": "Module de recupération des entités provenant octopus",
            "time": "2019-02-01T12:57:45+00:00"
            "time": "2019-04-15T15:21:00+00:00"
        },
        {
            "name": "zendframework/zend-authentication",
@@ -4228,6 +4228,7 @@
                "mock",
                "xunit"
            ],
            "abandoned": true,
            "time": "2015-10-02T06:51:40+00:00"
        },
        {
+1
Changes for config/autoload/global.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ return [
                'result_cache'     => ($env === 'production' ? 'memcached' : 'array'),
                'hydration_cache'  => ($env === 'production' ? 'memcached' : 'array'),
                'generate_proxies' => ($env !== 'production'),
                'driver'           => 'orm_octopus',
            ],
        ],
    ],
+150
Changes for module/Application/config/merged/fonction.config.php: 150 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

namespace Application;

use Application\Controller\Fonction\FonctionController;
use Application\Controller\Fonction\FonctionControllerFactory;
use Application\Form\Fonction\FonctionForm;
use Application\Form\Fonction\FonctionFormFactory;
use Application\Form\Fonction\FonctionHydrator;
use Application\Provider\Privilege\FonctionPrivileges;
use Application\Service\Fonction\FonctionService;
use Application\Service\Fonction\FonctionServiceFactory;
use UnicaenAuth\Guard\PrivilegeController;
use Zend\Mvc\Router\Http\Literal;
use Zend\Mvc\Router\Http\Segment;

return [
    'bjyauthorize' => [
        'guards' => [
            PrivilegeController::class => [
                [
                    'controller' => FonctionController::class,
                    'action' => [
                        'index',
                        'afficher',
                        'creer',
                        'modifier',
                        'historiser',
                        'restaurer',
                        'detruire',
                        'synchroniser',
                    ],
                    'privileges' => [
                        FonctionPrivileges::AFFICHER,
                    ],
                ],
            ],
        ],
    ],

    'router'          => [
        'routes' => [
            'fonction' => [
                'type'  => Literal::class,
                'options' => [
                    'route'    => '/fonction',
                    'defaults' => [
                        'controller' => FonctionController::class,
                        'action'     => 'index',
                    ],
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'creer' => [
                        'type'  => Literal::class,
                        'options' => [
                            'route'    => '/creer',
                            'defaults' => [
                                'controller' => FonctionController::class,
                                'action'     => 'creer',
                            ],
                        ],
                    ],
                    'afficher' => [
                        'type'  => Segment::class,
                        'options' => [
                            'route'    => '/afficher/:fonction',
                            'defaults' => [
                                'controller' => FonctionController::class,
                                'action'     => 'afficher',
                            ],
                        ],
                    ],
                    'modifier' => [
                        'type'  => Segment::class,
                        'options' => [
                            'route'    => '/modifier/:fonction',
                            'defaults' => [
                                'controller' => FonctionController::class,
                                'action'     => 'modifier',
                            ],
                        ],
                    ],
                    'historiser' => [
                        'type'  => Segment::class,
                        'options' => [
                            'route'    => '/historiser/:fonction',
                            'defaults' => [
                                'controller' => FonctionController::class,
                                'action'     => 'historiser',
                            ],
                        ],
                    ],
                    'restaurer' => [
                        'type'  => Segment::class,
                        'options' => [
                            'route'    => '/restaurer/:fonction',
                            'defaults' => [
                                'controller' => FonctionController::class,
                                'action'     => 'restaurer',
                            ],
                        ],
                    ],
                    'detruire' => [
                        'type'  => Segment::class,
                        'options' => [
                            'route'    => '/detruire/:fonction',
                            'defaults' => [
                                'controller' => FonctionController::class,
                                'action'     => 'detruire',
                            ],
                        ],
                    ],
                    'synchroniser' => [
                        'type'  => Literal::class,
                        'options' => [
                            'route'    => '/synchroniser',
                            'defaults' => [
                                'controller' => FonctionController::class,
                                'action'     => 'synchroniser',
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],

    'service_manager' => [
        'factories' => [
            FonctionService::class => FonctionServiceFactory::class,
        ],
    ],
    'controllers'     => [
        'factories' => [
            FonctionController::class => FonctionControllerFactory::class,
        ],
    ],
    'form_elements' => [
        'factories' => [
            FonctionForm::class => FonctionFormFactory::class,
        ],
    ],
    'hydrators' => [
        'invokables' => [
            FonctionHydrator::class => FonctionHydrator::class,
        ]
    ]

];
 No newline at end of file
+15 −7
Changes for module/Application/config/merged/menu.config.php: 15 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ namespace Application;
use Application\Provider\Privilege\ActivitePrivileges;
use Application\Provider\Privilege\ApplicationPrivileges;
use Application\Provider\Privilege\FicheMetierPrivileges;
use Application\Provider\Privilege\FonctionPrivileges;
use Application\Provider\Privilege\PostePrivileges;
use Application\Provider\Privilege\StructurePrivileges;

@@ -22,6 +23,20 @@ return [
                        'route' => 'ressource-rh',
                        'roles' => [],
                        'pages' => [
                            [
                                'label' => 'Les fonctions',
                                'route' => 'fonction',
                                'privileges' => FonctionPrivileges::AFFICHER,
                                'dropdown-header' => true,
                                'icon' => 'fas fa-angle-right'
                            ],
                            [
                                'label' => 'Les structures',
                                'route' => 'structure',
                                'privileges' => StructurePrivileges::AFFICHER,
                                'dropdown-header' => true,
                                'icon' => 'fas fa-angle-right'
                            ],
                        ],
                    ],
                    'entretien' => [
@@ -85,13 +100,6 @@ return [
                                'dropdown-header' => true,
                                'icon' => 'fas fa-angle-right'
                            ],
                            [
                                'label' => 'Les structures',
                                'route' => 'structure',
                                'privileges' => StructurePrivileges::AFFICHER,
                                'dropdown-header' => true,
                                'icon' => 'fas fa-angle-right'
                            ],
                            [
                                'label' => 'Les agents',
                                'route' => 'agent',
Loading