Commit 3854b4f5 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Petites modifs config & compsoer

parent 51cdb810
Loading
Loading
Loading
Loading
+1 −1
Changes for composer.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
        "unicaen/bjy-authorize"  : "dev-laminas_migration",
        "unicaen/auth"           : "dev-laminas_migration",
        "laminas/laminas-file"   : "2.8.3",
        "unicaen/code"           : "6.0.1",
        "unicaen/code"           : "6.0.2",
        "unicaen/import"         : "4.0.1",
        "unicaen/tbl"            : "5.0.1",
        "unicaen/open-document"  : "4.0",
+128 −75
Changes for composer.lock: 128 added lines, 75 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#installing-dependencies",
        "This file is @generated automatically"
    ],
    "content-hash": "ac4dec3b88acb71f4fef50008acc49c5",
    "content-hash": "56d382021e7872437e19389d1e413441",
    "packages": [
        {
            "name": "beberlei/assert",
@@ -528,16 +528,16 @@
        },
        {
            "name": "doctrine/dbal",
            "version": "2.13.5",
            "version": "2.13.6",
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/dbal.git",
                "reference": "d92ddb260547c2a7b650ff140f744eb6f395d8fc"
                "reference": "67ef6d0327ccbab1202b39e0222977a47ed3ef2f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/dbal/zipball/d92ddb260547c2a7b650ff140f744eb6f395d8fc",
                "reference": "d92ddb260547c2a7b650ff140f744eb6f395d8fc",
                "url": "https://api.github.com/repos/doctrine/dbal/zipball/67ef6d0327ccbab1202b39e0222977a47ed3ef2f",
                "reference": "67ef6d0327ccbab1202b39e0222977a47ed3ef2f",
                "shasum": ""
            },
            "require": {
@@ -550,13 +550,13 @@
            "require-dev": {
                "doctrine/coding-standard": "9.0.0",
                "jetbrains/phpstorm-stubs": "2021.1",
                "phpstan/phpstan": "1.1.1",
                "phpstan/phpstan": "1.2.0",
                "phpunit/phpunit": "^7.5.20|^8.5|9.5.10",
                "psalm/plugin-phpunit": "0.16.1",
                "squizlabs/php_codesniffer": "3.6.1",
                "symfony/cache": "^4.4",
                "symfony/console": "^2.0.5|^3.0|^4.0|^5.0",
                "vimeo/psalm": "4.12.0"
                "vimeo/psalm": "4.13.0"
            },
            "suggest": {
                "symfony/console": "For helpful console commands such as SQL execution and import of files."
@@ -629,7 +629,7 @@
                    "type": "tidelift"
                }
            ],
            "time": "2021-11-11T16:27:36+00:00"
            "time": "2021-11-26T20:11:05+00:00"
        },
        {
            "name": "doctrine/deprecations",
@@ -2891,25 +2891,25 @@
        },
        {
            "name": "laminas/laminas-crypt",
            "version": "3.4.0",
            "version": "3.5.1",
            "source": {
                "type": "git",
                "url": "https://github.com/laminas/laminas-crypt.git",
                "reference": "a058eeb2fe57824b958ac56753faff790a649e18"
                "reference": "026fe31aa5c9d68679267e5473d64d96f4576020"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laminas/laminas-crypt/zipball/a058eeb2fe57824b958ac56753faff790a649e18",
                "reference": "a058eeb2fe57824b958ac56753faff790a649e18",
                "url": "https://api.github.com/repos/laminas/laminas-crypt/zipball/026fe31aa5c9d68679267e5473d64d96f4576020",
                "reference": "026fe31aa5c9d68679267e5473d64d96f4576020",
                "shasum": ""
            },
            "require": {
                "container-interop/container-interop": "^1.2",
                "ext-mbstring": "*",
                "laminas/laminas-math": "^3.0",
                "laminas/laminas-stdlib": "^2.7.7 || ^3.1",
                "laminas/laminas-math": "^3.4",
                "laminas/laminas-stdlib": "^3.6",
                "laminas/laminas-zendframework-bridge": "^1.0",
                "php": "^7.3 || ~8.0.0"
                "php": "^7.3 || ~8.0.0 || ~8.1.0"
            },
            "replace": {
                "zendframework/zend-crypt": "^3.3.1"
@@ -2943,7 +2943,7 @@
                    "type": "community_bridge"
                }
            ],
            "time": "2021-02-11T19:40:03+00:00"
            "time": "2021-11-28T16:04:24+00:00"
        },
        {
            "name": "laminas/laminas-db",
@@ -3585,23 +3585,22 @@
        },
        {
            "name": "laminas/laminas-i18n",
            "version": "2.11.3",
            "version": "2.12.0",
            "source": {
                "type": "git",
                "url": "https://github.com/laminas/laminas-i18n.git",
                "reference": "563b1b720ee53f2748473656a250d65911fc4462"
                "reference": "78234f2701ec6252bd99f08e517d2de202716b20"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laminas/laminas-i18n/zipball/563b1b720ee53f2748473656a250d65911fc4462",
                "reference": "563b1b720ee53f2748473656a250d65911fc4462",
                "url": "https://api.github.com/repos/laminas/laminas-i18n/zipball/78234f2701ec6252bd99f08e517d2de202716b20",
                "reference": "78234f2701ec6252bd99f08e517d2de202716b20",
                "shasum": ""
            },
            "require": {
                "ext-intl": "*",
                "laminas/laminas-stdlib": "^2.7 || ^3.0",
                "laminas/laminas-zendframework-bridge": "^1.0",
                "php": "^7.3 || ~8.0.0"
                "php": "^7.3 || ~8.0.0 || ~8.1.0"
            },
            "conflict": {
                "phpspec/prophecy": "<1.9.0"
@@ -3610,14 +3609,16 @@
                "zendframework/zend-i18n": "^2.10.1"
            },
            "require-dev": {
                "laminas/laminas-cache": "^2.6.1",
                "laminas/laminas-cache": "^3.1.2",
                "laminas/laminas-cache-storage-adapter-memory": "^2.0.0",
                "laminas/laminas-cache-storage-deprecated-factory": "^1.0.0",
                "laminas/laminas-coding-standard": "~1.0.0",
                "laminas/laminas-config": "^2.6",
                "laminas/laminas-eventmanager": "^2.6.2 || ^3.0",
                "laminas/laminas-filter": "^2.6.1",
                "laminas/laminas-servicemanager": "^3.2.1",
                "laminas/laminas-validator": "^2.6",
                "laminas/laminas-view": "^2.6.3",
                "laminas/laminas-config": "^3.4.0",
                "laminas/laminas-eventmanager": "^3.4.0",
                "laminas/laminas-filter": "^2.10.0",
                "laminas/laminas-servicemanager": "^3.7.0",
                "laminas/laminas-validator": "^2.14.0",
                "laminas/laminas-view": "^2.12.0",
                "phpunit/phpunit": "^9.3"
            },
            "suggest": {
@@ -3658,7 +3659,7 @@
                    "type": "community_bridge"
                }
            ],
            "time": "2021-10-13T08:07:28+00:00"
            "time": "2021-11-26T11:46:47+00:00"
        },
        {
            "name": "laminas/laminas-i18n-resources",
@@ -3711,16 +3712,16 @@
        },
        {
            "name": "laminas/laminas-inputfilter",
            "version": "2.12.0",
            "version": "2.12.1",
            "source": {
                "type": "git",
                "url": "https://github.com/laminas/laminas-inputfilter.git",
                "reference": "b6ab28b425e626b12488fec243e02d36d8dffeff"
                "reference": "461a7a27b70bd440f925a31221b7a5348cd0d0fd"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laminas/laminas-inputfilter/zipball/b6ab28b425e626b12488fec243e02d36d8dffeff",
                "reference": "b6ab28b425e626b12488fec243e02d36d8dffeff",
                "url": "https://api.github.com/repos/laminas/laminas-inputfilter/zipball/461a7a27b70bd440f925a31221b7a5348cd0d0fd",
                "reference": "461a7a27b70bd440f925a31221b7a5348cd0d0fd",
                "shasum": ""
            },
            "require": {
@@ -3774,7 +3775,7 @@
                    "type": "community_bridge"
                }
            ],
            "time": "2021-03-16T14:17:17+00:00"
            "time": "2021-11-27T14:17:43+00:00"
        },
        {
            "name": "laminas/laminas-json",
@@ -4013,41 +4014,40 @@
        },
        {
            "name": "laminas/laminas-mail",
            "version": "2.14.3",
            "version": "2.15.1",
            "source": {
                "type": "git",
                "url": "https://github.com/laminas/laminas-mail.git",
                "reference": "a496ab1c708b91809de211522057a6d6781bd0aa"
                "reference": "70c3476913c74e9befd782ab665ad1b9ebac556e"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laminas/laminas-mail/zipball/a496ab1c708b91809de211522057a6d6781bd0aa",
                "reference": "a496ab1c708b91809de211522057a6d6781bd0aa",
                "url": "https://api.github.com/repos/laminas/laminas-mail/zipball/70c3476913c74e9befd782ab665ad1b9ebac556e",
                "reference": "70c3476913c74e9befd782ab665ad1b9ebac556e",
                "shasum": ""
            },
            "require": {
                "ext-iconv": "*",
                "laminas/laminas-loader": "^2.5",
                "laminas/laminas-mime": "^2.5",
                "laminas/laminas-stdlib": "^2.7 || ^3.0",
                "laminas/laminas-validator": "^2.10.2",
                "laminas/laminas-zendframework-bridge": "^1.0",
                "php": "^7.3 || ~8.0.0",
                "laminas/laminas-loader": "^2.8",
                "laminas/laminas-mime": "^2.9.1",
                "laminas/laminas-stdlib": "^3.6",
                "laminas/laminas-validator": "^2.15",
                "php": "^7.3 || ~8.0.0 || ~8.1.0",
                "symfony/polyfill-mbstring": "^1.12.0",
                "true/punycode": "^2.1"
                "true/punycode": "^2.1",
                "webmozart/assert": "^1.10"
            },
            "replace": {
                "zendframework/zend-mail": "^2.10.0"
            "conflict": {
                "zendframework/zend-mail": "*"
            },
            "require-dev": {
                "laminas/laminas-coding-standard": "~1.0.0",
                "laminas/laminas-config": "^3.4",
                "laminas/laminas-crypt": "^2.6 || ^3.0",
                "laminas/laminas-db": "^2.12",
                "laminas/laminas-servicemanager": "^3.2.1",
                "phpunit/phpunit": "^9.3",
                "laminas/laminas-crypt": "^2.6 || ^3.4",
                "laminas/laminas-db": "^2.13.3",
                "laminas/laminas-servicemanager": "^3.7",
                "phpunit/phpunit": "^9.5.5",
                "psalm/plugin-phpunit": "^0.15.1",
                "symfony/process": "^5.3",
                "symfony/process": "^5.3.7",
                "vimeo/psalm": "^4.7"
            },
            "suggest": {
@@ -4082,7 +4082,7 @@
                    "type": "community_bridge"
                }
            ],
            "time": "2021-09-23T07:17:22+00:00"
            "time": "2021-09-23T07:33:57+00:00"
        },
        {
            "name": "laminas/laminas-math",
@@ -4146,29 +4146,28 @@
        },
        {
            "name": "laminas/laminas-mime",
            "version": "2.8.0",
            "version": "2.9.1",
            "source": {
                "type": "git",
                "url": "https://github.com/laminas/laminas-mime.git",
                "reference": "9a59704f33106427a384d0ae421f96043174093a"
                "reference": "72d21a1b4bb7086d4a4d7058c0abca180b209184"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laminas/laminas-mime/zipball/9a59704f33106427a384d0ae421f96043174093a",
                "reference": "9a59704f33106427a384d0ae421f96043174093a",
                "url": "https://api.github.com/repos/laminas/laminas-mime/zipball/72d21a1b4bb7086d4a4d7058c0abca180b209184",
                "reference": "72d21a1b4bb7086d4a4d7058c0abca180b209184",
                "shasum": ""
            },
            "require": {
                "laminas/laminas-stdlib": "^2.7 || ^3.0",
                "laminas/laminas-zendframework-bridge": "^1.0",
                "php": "^7.3 || ~8.0.0"
                "php": "^7.3 || ~8.0.0 || ~8.1.0"
            },
            "replace": {
                "zendframework/zend-mime": "^2.7.2"
            "conflict": {
                "zendframework/zend-mime": "*"
            },
            "require-dev": {
                "laminas/laminas-coding-standard": "~1.0.0",
                "laminas/laminas-mail": "^2.6",
                "laminas/laminas-coding-standard": "~2.2.1",
                "laminas/laminas-mail": "^2.12",
                "phpunit/phpunit": "^9.3"
            },
            "suggest": {
@@ -4196,7 +4195,7 @@
                    "type": "community_bridge"
                }
            ],
            "time": "2021-02-16T17:40:06+00:00"
            "time": "2021-09-20T21:19:24+00:00"
        },
        {
            "name": "laminas/laminas-modulemanager",
@@ -7328,11 +7327,11 @@
        },
        {
            "name": "unicaen/code",
            "version": "6.0.1",
            "version": "6.0.2",
            "source": {
                "type": "git",
                "url": "https://git.unicaen.fr/lib/unicaen/code.git",
                "reference": "b341e3d2a92bcca8f908d705241bacba62ded0a0"
                "reference": "d9778b6459182e5495ba9f88a81122b6c948f8e7"
            },
            "require": {
                "easybook/geshi": ">=1.0",
@@ -7349,7 +7348,7 @@
                ]
            },
            "description": "Boite à outils pour la programmation avec la bibliothèque Unicaen",
            "time": "2021-11-24T10:46:48+00:00"
            "time": "2021-11-26T14:21:59+00:00"
        },
        {
            "name": "unicaen/import",
@@ -7403,11 +7402,11 @@
            "source": {
                "type": "git",
                "url": "https://git.unicaen.fr/lib/unicaen/siham.git",
                "reference": "2ae0586541630464ddf9147713aec782a401aa63"
                "reference": "7164e12648b8adac8141e120f62eec671cb22948"
            },
            "require": {
                "zendframework/zend-mail": "^2.10",
                "zendframework/zend-mime": "^2.7"
                "laminas/laminas-mail": "^2.10",
                "laminas/laminas-mime": "^2.7"
            },
            "require-dev": {
                "phpunit/phpunit": "^5.6"
@@ -7428,7 +7427,7 @@
                }
            ],
            "description": "PHP library for SIHAM webservices",
            "time": "2021-11-15T08:34:33+00:00"
            "time": "2021-11-24T16:17:14+00:00"
        },
        {
            "name": "unicaen/tbl",
@@ -7459,7 +7458,7 @@
            "source": {
                "type": "git",
                "url": "https://git.unicaen.fr/lib/unicaen/zfc-user.git",
                "reference": "eab39735ca138b21114e786966855656d9cb40d0"
                "reference": "25104ec61a4b48753223e28f44bef83844f57a51"
            },
            "require": {
                "laminas/laminas-authentication": "^2.5",
@@ -7502,7 +7501,7 @@
                ]
            },
            "description": "A generic user registration and authentication module for ZF2. Supports Laminas\\Db and Doctrine2.",
            "time": "2021-07-13T14:54:08+00:00"
            "time": "2021-11-24T16:22:00+00:00"
        },
        {
            "name": "webimpress/safe-writer",
@@ -7558,6 +7557,60 @@
                }
            ],
            "time": "2021-04-19T16:34:45+00:00"
        },
        {
            "name": "webmozart/assert",
            "version": "1.10.0",
            "source": {
                "type": "git",
                "url": "https://github.com/webmozarts/assert.git",
                "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25",
                "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25",
                "shasum": ""
            },
            "require": {
                "php": "^7.2 || ^8.0",
                "symfony/polyfill-ctype": "^1.8"
            },
            "conflict": {
                "phpstan/phpstan": "<0.12.20",
                "vimeo/psalm": "<4.6.1 || 4.6.2"
            },
            "require-dev": {
                "phpunit/phpunit": "^8.5.13"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.10-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Webmozart\\Assert\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Bernhard Schussek",
                    "email": "bschussek@gmail.com"
                }
            ],
            "description": "Assertions to validate method input/output with nice error messages.",
            "keywords": [
                "assert",
                "check",
                "validate"
            ],
            "time": "2021-03-09T10:59:23+00:00"
        }
    ],
    "packages-dev": [],
+4 −5
Changes for module/Application/src/ConfigFactory.php: 4 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -49,11 +49,10 @@ class ConfigFactory
        }

        if (isset($config['routes'])) {
            $finalConfig['router'] = [
                'routes' => [
                    strtolower($namespace) => self::routeSimplified($config['routes']),
                ],
            ];
            $finalConfig['router']['routes'] = [];
            foreach ($config['routes'] as $cr => $cc) {
                $finalConfig['router']['routes'][$cr] = self::routeSimplified($cc);
            }
        }

        if (isset($config['navigation'])) {
+2
Changes for module/Indicateur/config/module.config.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ return [
    ],

    'routes' => [
        'indicateur' => [
            'route'         => '/gestion/indicateur',
            'controller'    => 'Indicateur\Controller\Indicateur',
            'action'        => 'index',
@@ -94,6 +95,7 @@ return [
                ],
            ],
        ],
    ],

    'navigation' => [
        'gestion' => [
+11 −3
Changes for module/Plafond/config/module.config.php: 11 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ use UnicaenAuth\Guard\PrivilegeController;
return [

    'routes' => [
        'plafond' => [
            'route'         => '/plafond',
            'controller'    => 'Plafond\Controller\Plafond',
            'action'        => 'index',
@@ -82,9 +83,11 @@ return [
                        ],
                    ],
                ],
            ],
        ],

            'derogation' => [
                'route'         => '/derogation',
        'derogations' => [
            'route'         => '/intervenant/:intervenant/derogations',
            'controller'    => 'Plafond\Controller\Derogation',
            'action'        => 'index',
            'may_terminate' => true,
@@ -93,7 +96,6 @@ return [
            ],
        ],
    ],
    ],

    'console' => [
        'construire' => [
@@ -151,6 +153,11 @@ return [
            'privileges' => Privileges::PLAFONDS_STRUCTURE_EDITION,
            'assertion'  => Assertion\PlafondAssertion::class,
        ],
        [
            'controller' => 'Plafond\Controller\Derogation',
            'action'     => ['index'],
            'privileges' => Privileges::PLAFONDS_DEROGATIONS_VISUALISATION,
        ],
    ],

    'rules' => [
@@ -167,6 +174,7 @@ return [
    'controllers' => [
        'Plafond\Controller\Plafond'          => Controller\PlafondControllerFactory::class,
        'Plafond\Controller\PlafondStructure' => Controller\PlafondStructureControllerFactory::class,
        'Plafond\Controller\Derogation'       => Controller\DerogationControllerFactory::class,
    ],

    'services' => [