Commit bd6a506e authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Upgrade unicaen-app et mpdf

parent 717b58e0
Loading
Loading
Loading
Loading
+2 −2
Changes for composer.json: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
        "zendframework/zend-developer-tools":   "1.0.0"
    },
    "require": {
        "unicaen/unicaen-app":                  "~1.2.0",
        "unicaen/unicaen-app":                  "^1.3",
        "unicaen/unicaen-auth":                 "1.2.0.x-dev",
        "unicaen/unicaen-faq":                  "^1.0",
        "unicaen/unicaen-ldap":                 "^2.1",
@@ -20,7 +20,7 @@
        "unicaen/unicaen-leocarte":             "^1.0",
        "unicaen/unicaen-code":                 "^1.0",
        "ramsey/uuid":                          "^3.3",
        "mpdf/mpdf":                            "v5.7",
        "mpdf/mpdf":                            "v6.1.3",
        "bjyoungblood/bjy-authorize":           "dev-master",
        "guzzlehttp/guzzle":                    "^6.3"
    },
+75 −17
Changes for composer.lock: 75 added lines, 17 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": "6786912631230bf1da0e75c58337ce4a",
    "content-hash": "53abddb5ffb961af7b5ec0ac11bbe73f",
    "packages": [
        {
            "name": "bjyoungblood/bjy-authorize",
@@ -1189,20 +1189,28 @@
        },
        {
            "name": "mpdf/mpdf",
            "version": "v5.7.0",
            "version": "v6.1.3",
            "source": {
                "type": "git",
                "url": "https://github.com/mpdf/mpdf.git",
                "reference": "3bc6d835049b19391099fc30568bc00c58bc2481"
                "reference": "7f138bf7508eac895ac2c13d2509b056ac7e7e97"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/mpdf/mpdf/zipball/3bc6d835049b19391099fc30568bc00c58bc2481",
                "reference": "3bc6d835049b19391099fc30568bc00c58bc2481",
                "url": "https://api.github.com/repos/mpdf/mpdf/zipball/7f138bf7508eac895ac2c13d2509b056ac7e7e97",
                "reference": "7f138bf7508eac895ac2c13d2509b056ac7e7e97",
                "shasum": ""
            },
            "require": {
                "php": ">=4.3.10"
                "ext-mbstring": "*",
                "php": ">=5.4.0",
                "setasign/fpdi": "1.6.*"
            },
            "require-dev": {
                "phpunit/phpunit": "^4.7"
            },
            "suggest": {
                "ext-zlib": "Needed for compression of embedded resources, such as fonts"
            },
            "type": "library",
            "autoload": {
@@ -1213,21 +1221,22 @@
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "GPL-1.0+"
                "GPL-2.0"
            ],
            "authors": [
                {
                    "name": "Ian Back"
                    "name": "Ian Back",
                    "role": "Developer"
                }
            ],
            "description": "A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support",
            "homepage": "http://www.mpdf1.com/mpdf/index.php",
            "homepage": "http://mpdf.github.io",
            "keywords": [
                "pdf",
                "php",
                "utf-8"
            ],
            "time": "2013-07-18T15:12:49+00:00"
            "time": "2016-12-12T10:42:18+00:00"
        },
        {
            "name": "paragonie/random_compat",
@@ -1515,6 +1524,55 @@
            ],
            "time": "2016-03-31T09:19:26+00:00"
        },
        {
            "name": "setasign/fpdi",
            "version": "1.6.2",
            "source": {
                "type": "git",
                "url": "https://github.com/Setasign/FPDI.git",
                "reference": "a6ad58897a6d97cc2d2cd2adaeda343b25a368ea"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/Setasign/FPDI/zipball/a6ad58897a6d97cc2d2cd2adaeda343b25a368ea",
                "reference": "a6ad58897a6d97cc2d2cd2adaeda343b25a368ea",
                "shasum": ""
            },
            "suggest": {
                "setasign/fpdf": "FPDI will extend this class but as it is also possible to use \"tecnickcom/tcpdf\" as an alternative there's no fixed dependency configured.",
                "setasign/fpdi-fpdf": "Use this package to automatically evaluate dependencies to FPDF.",
                "setasign/fpdi-tcpdf": "Use this package to automatically evaluate dependencies to TCPDF."
            },
            "type": "library",
            "autoload": {
                "classmap": [
                    "filters/",
                    "fpdi.php",
                    "fpdf_tpl.php",
                    "fpdi_pdf_parser.php",
                    "pdf_context.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Jan Slabon",
                    "email": "jan.slabon@setasign.com",
                    "homepage": "https://www.setasign.com"
                }
            ],
            "description": "FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. Because it is also possible to use FPDI with TCPDF, there are no fixed dependencies defined. Please see suggestions for packages which evaluates the dependencies automatically.",
            "homepage": "https://www.setasign.com/fpdi",
            "keywords": [
                "fpdf",
                "fpdi",
                "pdf"
            ],
            "time": "2017-05-11T14:25:49+00:00"
        },
        {
            "name": "symfony/console",
            "version": "v3.3.16",
@@ -1749,15 +1807,15 @@
        },
        {
            "name": "unicaen/unicaen-app",
            "version": "1.2.44",
            "version": "1.3.2",
            "source": {
                "type": "svn",
                "url": "https://svn.unicaen.fr/svn/UnicaenApp",
                "reference": "/tags/1.2.44/@850"
                "reference": "/tags/1.3.2/@857"
            },
            "require": {
                "doctrine/doctrine-orm-module": ">=0.7",
                "php": ">=5.3.3",
                "php": ">=5.6 || >=7.0",
                "rwoverdijk/assetmanager": ">=1.3",
                "zendframework/zend-config": "2.4.*",
                "zendframework/zend-console": "2.4.*",
@@ -1777,9 +1835,9 @@
                "zendframework/zend-view": "2.4.*"
            },
            "require-dev": {
                "mpdf/mpdf": "v5.7.1",
                "phpunit/phpunit": "5.6",
                "zendframework/zend-test": "2.4.*"
                "mpdf/mpdf": "v6.1.3",
                "phpunit/phpunit": "^5.6",
                "zendframework/zend-test": "^2.4"
            },
            "bin": [
                "bin/deploy.sh",
@@ -1796,7 +1854,7 @@
                ]
            },
            "description": "Module commun aux applis ZF2 de l'UCBN",
            "time": "2018-01-18T11:22:44+00:00"
            "time": "2018-02-05T15:01:53+00:00"
        },
        {
            "name": "unicaen/unicaen-auth",
+31
Changes for config/autoload/unicaen-app.global.php: 31 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -22,5 +22,36 @@ return [
         * Période d'exécution de la requête de rafraîchissement de la session utilisateur, en millisecondes.
         */
        'session_refresh_period' => 0, // 0 <=> aucune requête exécutée

        /**
         * Paramètres de fonctionnement LDAP.
         */
        'ldap' => [
            'dn' => [
                'UTILISATEURS_BASE_DN'                  => 'ou=people,dc=unicaen,dc=fr',
                'UTILISATEURS_DESACTIVES_BASE_DN'       => 'ou=deactivated,dc=unicaen,dc=fr',
                'GROUPS_BASE_DN'                        => 'ou=groups,dc=unicaen,dc=fr',
                'STRUCTURES_BASE_DN'                    => 'ou=structures,dc=unicaen,dc=fr',
            ],
            'filters' => [
                'LOGIN_FILTER'                          => '(supannAliasLogin=%s)',
                'UTILISATEUR_STD_FILTER'                => '(|(uid=p*)(&(uid=e*)(eduPersonAffiliation=student)))',
                'CN_FILTER'                             => '(cn=%s)',
                'NAME_FILTER'                           => '(cn=%s*)',
                'UID_FILTER'                            => '(uid=%s)',
                'NO_INDIVIDU_FILTER'                    => '(supannEmpId=%08s)',
                'AFFECTATION_FILTER'                    => '(&(uid=*)(eduPersonOrgUnitDN=%s))',
                'AFFECTATION_CSTRUCT_FILTER'            => '(&(uid=*)(|(ucbnSousStructure=%s;*)(supannAffectation=%s;*)))',
                'LOGIN_OR_NAME_FILTER'                  => '(|(supannAliasLogin=%s)(cn=%s*))',
                'MEMBERSHIP_FILTER'                     => '(memberOf=%s)',
                'AFFECTATION_ORG_UNIT_FILTER'           => '(eduPersonOrgUnitDN=%s)',
                'AFFECTATION_ORG_UNIT_PRIMARY_FILTER'   => '(eduPersonPrimaryOrgUnitDN=%s)',
                'ROLE_FILTER'                           => '(supannRoleEntite=[role={SUPANN}%s][type={SUPANN}%s][code=%s]*)',
                'PROF_STRUCTURE'                        => '(&(eduPersonAffiliation=teacher)(eduPersonOrgUnitDN=%s))',
                'FILTER_STRUCTURE_DN'		            => '(%s)',
                'FILTER_STRUCTURE_CODE_ENTITE'	        => '(supannCodeEntite=%s)',
                'FILTER_STRUCTURE_CODE_ENTITE_PARENT'   => '(supannCodeEntiteParent=%s)',
            ],
        ],
    ]
];