You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Composer: make var-dumper, stopwatch, process and monolog-bundle optional dependencies #269
Only the monolog.logger / monolog.processor tags in config/services/*.yaml. The code depends on psr/log (LoggerInterface, LogLevel) and, for the Logger\*Processor classes only (Monolog\LogRecord), on monolog/monolog
symfony/monolog-bridge
Not used at all (no Symfony\Bridge\Monolog class)
Proposed fix
Move symfony/var-dumper, symfony/stopwatch and symfony/process to suggest (and require-dev).
In the tasks using them, fail with an explicit message when the package is missing (e.g. LogicException: StopwatchTask requires symfony/stopwatch, try "composer require symfony/stopwatch"), as Symfony does in its own optional integrations.
Replace symfony/monolog-bundle by psr/log in require, and suggest symfony/monolog-bundle to get the cleverage_process* channels. Without MonologBundle the tags are ignored and the default logger is used.
Remove symfony/monolog-bridge (unused).
monolog/monolog (^3, LogRecord): the processors are only instantiated by MonologBundle (monolog.processor tag), so it can be suggested with MonologBundle; or required if we prefer to keep it simple. To decide in the PR.
Prerequisites
Packages using MonologBundle without requiring it, to fix and release before this change:
The other bridges only use monolog.logger tags (ignored without MonologBundle) and '@logger'.
Requirements
Documentation updates
Reference
Cookbooks
Changelog
Unit tests
Breaking changes
None for applications that already use these packages. An application using one of these tasks without requiring the package gets an explicit error at execution time and must add the package to its composer.json.
Prerequisite: cleverage/ui-process-bundle#150. ui-process-bundle uses Monolog directly (classes, monolog extension configured in prepend(), monolog.logger tags) without requiring it: it only gets symfony/monolog-bundle through process-bundle. #150 must be released before replacing symfony/monolog-bundle by psr/log here. The other bridge bundles should be checked the same way before this change.
Update: #274 (PR #287) now requires psr/log^2|^3 and monolog/monolog^3 (the lowest-dependencies CI job showed that psr/log 1 and Monolog 2 could not work: typed LoggerInterface signatures, Monolog\LogRecord in the processors). For this ticket: psr/log is already declared; making MonologBundle optional must keep Monolog 3 for the processors (keep monolog/monolog^3 in require, or move it to suggest with a conflict on monolog/monolog <3).
Activity
njoubert-cleverage commentedon Oct 14, 2026
Prerequisite: cleverage/ui-process-bundle#150. ui-process-bundle uses Monolog directly (classes,
monologextension configured inprepend(),monolog.loggertags) without requiring it: it only getssymfony/monolog-bundlethrough process-bundle. #150 must be released before replacingsymfony/monolog-bundlebypsr/loghere. The other bridge bundles should be checked the same way before this change.njoubert-cleverage commentedon Oct 14, 2026
Update: #274 (PR #287) now requires
psr/log^2|^3andmonolog/monolog^3(the lowest-dependencies CI job showed thatpsr/log1 and Monolog 2 could not work: typedLoggerInterfacesignatures,Monolog\LogRecordin the processors). For this ticket:psr/logis already declared; making MonologBundle optional must keep Monolog 3 for the processors (keepmonolog/monolog^3inrequire, or move it tosuggestwith aconflictonmonolog/monolog <3).#269 - Require symfony/polyfill-php84
#269 - Replace array_any() by a loop instead of requiring symfony/pol…
Merge pull request #296 from cleverage/269