Skip to content

#311 - Deprecate DataQueueEventListener - #316

Merged
njoubert-cleverage merged 2 commits into
mainfrom
311
Oct 20, 2026
Merged

njoubert-cleverage merged 2 commits into
mainfrom
311

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #311.

  • cleverage_process.event_listener.data_queue (config/services/event.yaml): deprecated (package cleverage/process-bundle, version 5.4): a notice is triggered when the service is instantiated, i.e. injected, fetched, or called because an application dispatches cleverage_process.data_queue with an event_dispatcher task. Nothing in the bundles dispatches this event.
  • DataQueueEventListener: @deprecated. It keeps a clone of the ProcessState of every event in memory, without limit, for the lifetime of the container ("Used mostly for testing purpose").
  • Both will be removed in v6.0 (v6.0: remove the deprecated code #292). Applications can write their own listener (example on the event_dispatcher reference page).
  • Documentation: event_dispatcher reference page. CHANGELOG.

Tests: CleverAgeProcessExtensionTest::testTheDataQueueListenerIsDeprecated().

Checked in the container (978 tests): highest dependencies (PHP 8.5, Symfony 8.1), lowest dependencies (PHP 8.2, Symfony 6.4.0), Symfony 6.4.48 on PHP 8.2 and 8.5, Symfony 7.4: no deprecation, no risky test (with pcov coverage). PHPStan, PHP-CS-Fixer and Rector OK.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None. New deprecation (5.4): the cleverage_process.event_listener.data_queue service and DataQueueEventListener, removed in v6.0.

🤖 Generated with Claude Code

njoubert-cleverage and others added 2 commits October 20, 2026 15:06
- The cleverage_process.event_listener.data_queue service is deprecated
  (setDeprecated(), notice when it is injected or fetched) and
  DataQueueEventListener is marked @deprecated: it keeps a copy of the
  ProcessState of every cleverage_process.data_queue event in memory,
  without limit. Both will be removed in v6.0.
- Tests, documentation (event_dispatcher task) and CHANGELOG updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit 96fa40b into main Oct 20, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataQueueEventListener: deprecate it (unbounded queue, nothing dispatches its event)

1 participant