From dfe2ff39b1207df5d59f9f81c5b64ed9ed597254 Mon Sep 17 00:00:00 2001 From: Nicolas Joubert Date: Wed, 14 Oct 2026 14:47:50 +0200 Subject: [PATCH] #149 - Clean up composer.json dependencies - Remove the unused symfony/dotenv, symfony/runtime, ext-ctype and ext-iconv requirements (application concerns / Symfony skeleton leftovers). - Replace doctrine/common by doctrine/collections (only ArrayCollection is used). - Require twig/twig, symfony/twig-bundle, psr/log, doctrine/persistence, doctrine/migrations and symfony/event-dispatcher-contracts, used directly but only installed transitively; lower bounds are the ones already imposed by their current providers. - require-dev: twig/extra-bundle and symfony/property-access, used by the tests. symfony/runtime is kept in config.allow-plugins: cleverage/process-bundle v5.3 still requires it (cleverage/process-bundle#268 not released yet). Co-Authored-By: Claude Opus 5.5 (1M context) --- CHANGELOG.md | 1 + composer.json | 16 ++++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02e1c2e..efcd588 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ Latest ------ ## Changes +* [#149](https://github.com/cleverage/ui-process-bundle/issues/149) Clean up composer.json: remove the unused `symfony/dotenv`, `symfony/runtime`, `ext-ctype` and `ext-iconv` requirements (applications relying on the bundle to install `symfony/dotenv` / `symfony/runtime` must require them, as the Symfony skeleton does); replace `doctrine/common` by `doctrine/collections` (only `ArrayCollection` is used); require `twig/twig`, `symfony/twig-bundle`, `psr/log`, `doctrine/persistence`, `doctrine/migrations` and `symfony/event-dispatcher-contracts`, used directly but only installed transitively; add `twig/extra-bundle` and `symfony/property-access` (used by the tests) to the dev requirements. * [#150](https://github.com/cleverage/ui-process-bundle/issues/150) Require `symfony/monolog-bundle` and `monolog/monolog`, used directly by the bundle (log handlers, `monolog` configuration prepended, `monolog.logger` tags) but only installed through `cleverage/process-bundle`, which may stop requiring MonologBundle (cleverage/process-bundle#269). v3.2 diff --git a/composer.json b/composer.json index f4123a2..80d83b9 100644 --- a/composer.json +++ b/composer.json @@ -37,23 +37,24 @@ }, "require": { "php": ">=8.2", - "ext-ctype": "*", - "ext-iconv": "*", "cleverage/process-bundle": "^5.3", - "doctrine/common": "^3.5", + "doctrine/collections": "^1.5 || ^2.1 || ^3.1", "doctrine/dbal": "^3.10 || ^4.4", "doctrine/doctrine-bundle": "^2.18 || ^3.1", "doctrine/doctrine-migrations-bundle": "^3.7 || ^4", + "doctrine/migrations": "^3.2", "doctrine/orm": "^2.20 || ^3.5", + "doctrine/persistence": "^3.1 || ^4", "dragonmantank/cron-expression": "^3.6", "easycorp/easyadmin-bundle": "^5", "monolog/monolog": "^3", + "psr/log": "^2 || ^3", "symfony/config": "^6.4 || ^7.4 || ^8", "symfony/console": "^6.4 || ^7.4 || ^8", "symfony/dependency-injection": "^6.4 || ^7.4 || ^8", "symfony/doctrine-messenger": "^6.4 || ^7.4 || ^8", - "symfony/dotenv": "^6.4 || ^7.4 || ^8", "symfony/event-dispatcher": "^6.4 || ^7.4 || ^8", + "symfony/event-dispatcher-contracts": "^3", "symfony/expression-language": "^6.4 || ^7.4 || ^8", "symfony/filesystem": "^6.4 || ^7.4 || ^8", "symfony/finder": "^6.4 || ^7.4 || ^8", @@ -67,7 +68,6 @@ "symfony/password-hasher": "^6.4 || ^7.4 || ^8", "symfony/process": "^6.4 || ^7.4 || ^8", "symfony/routing": "^6.4 || ^7.4 || ^8", - "symfony/runtime": "^6.4 || ^7.4 || ^8", "symfony/scheduler": "^6.4 || ^7.4 || ^8", "symfony/security-bundle": "^6.4 || ^7.4 || ^8", "symfony/security-core": "^6.4 || ^7.4 || ^8", @@ -76,9 +76,11 @@ "symfony/string": "^6.4 || ^7.4 || ^8", "symfony/translation": "^6.4 || ^7.4 || ^8", "symfony/translation-contracts": "^3", + "symfony/twig-bundle": "^6.4 || ^7.4 || ^8", "symfony/uid": "^6.4 || ^7.4 || ^8", "symfony/ux-twig-component": "^2.32 || ^3.0", - "symfony/validator": "^6.4 || ^7.4 || ^8" + "symfony/validator": "^6.4 || ^7.4 || ^8", + "twig/twig": "^3.23" }, "require-dev": { "doctrine/doctrine-fixtures-bundle": "^3 || ^4", @@ -95,7 +97,9 @@ "symfony/debug-bundle": "^6.4 || ^7.4 || ^8", "symfony/maker-bundle": "^1.31", "symfony/notifier": "^6.4 || ^7.4 || ^8", + "symfony/property-access": "^6.4 || ^7.4 || ^8", "symfony/web-profiler-bundle": "^6.4 || ^7.4 || ^8", + "twig/extra-bundle": "^3.23", "vincentlanglet/twig-cs-fixer": "^3.11" }, "suggest": {