From 03f96f7bae59ce908750b76fe13249320f63fbbf Mon Sep 17 00:00:00 2001 From: Michiel Kodde Date: Tue, 9 Jan 2024 15:58:03 +0100 Subject: [PATCH] Install and configure incenteev parameters --- composer.json | 18 ++++++++++++++-- composer.lock | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 74 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 3651a1ea..d5d5fb0a 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,7 @@ "ext-dom": "*", "ext-libxml": "*", "ext-zlib": "*", + "incenteev/composer-parameter-handler": "*", "openconext/monitor-bundle": "^4.0", "surfnet/stepup-bundle": "^6.0.9", "surfnet/stepup-gssp-bundle": "^5.0", @@ -101,7 +102,15 @@ "auto-scripts": { "cache:clear": "symfony-cmd", "assets:install %PUBLIC_DIR%": "symfony-cmd" - } + }, + "post-install-cmd": [ + "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", + "@auto-scripts" + ], + "post-update-cmd": [ + "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", + "@auto-scripts" + ] }, "config": { "sort-packages": true, @@ -121,7 +130,12 @@ "symfony": { "allow-contrib": false, "require": "6.4.*" - } + }, + "incenteev-parameters": [ + { + "file": "config/openconext/parameters.yaml" + } + ] }, "archive": { "exclude": [ diff --git a/composer.lock b/composer.lock index c8c41986..4e4e7e9d 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "07b091fbb274a45d27539393ef43c130", + "content-hash": "041b60dbdec8fe9a3d7586b06e402e5e", "packages": [ { "name": "beberlei/assert", @@ -1702,6 +1702,63 @@ ], "time": "2023-12-03T20:05:35+00:00" }, + { + "name": "incenteev/composer-parameter-handler", + "version": "v2.2.0", + "source": { + "type": "git", + "url": "https://github.com/Incenteev/ParameterHandler.git", + "reference": "90bffce926e96b365579a2ef024aab457f4b80c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Incenteev/ParameterHandler/zipball/90bffce926e96b365579a2ef024aab457f4b80c5", + "reference": "90bffce926e96b365579a2ef024aab457f4b80c5", + "shasum": "" + }, + "require": { + "php": ">=7.4", + "symfony/yaml": "^5.4 || ^6.0 || ^7.0" + }, + "require-dev": { + "composer/composer": "^2.0@dev", + "phpspec/prophecy-phpunit": "^2.1", + "phpunit/phpunit": "^9.6", + "symfony/filesystem": "^5.4 || ^6.0 || ^7.0", + "symfony/phpunit-bridge": "^6.4.1 || ^7.0.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Incenteev\\ParameterHandler\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christophe Coevoet", + "email": "stof@notk.org" + } + ], + "description": "Composer script handling your ignored parameter file", + "homepage": "https://github.com/Incenteev/ParameterHandler", + "keywords": [ + "parameters management" + ], + "support": { + "issues": "https://github.com/Incenteev/ParameterHandler/issues", + "source": "https://github.com/Incenteev/ParameterHandler/tree/v2.2.0" + }, + "time": "2023-12-09T10:31:14+00:00" + }, { "name": "monolog/monolog", "version": "3.5.0",