Skip to content

#190 - Autowire the managers and repositories: aliases named after their class - #191

Merged
njoubert-cleverage merged 2 commits into
mainfrom
190
Oct 21, 2026
Merged

njoubert-cleverage merged 2 commits into
mainfrom
190

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #190.

  • Private aliases named after their class (config/services/manager.yaml, repository.yaml), as the Monolog handlers and the services of cleverage/process-bundle: ProcessExecutionManager, ProcessConfigurationsManager, ProcessExecutionRepository and ProcessScheduleRepository can be autowired in an application. The service ids are unchanged.
  • Documentation: new "In your code" section in reference/04-process_executions_and_logs.md (the four services and what they are used for, example adding an entry to the report of the running execution).
  • CHANGELOG.

Checked in process-bundle-demo (patch applied to the vendor): debug:autowiring UiProcessBundle --all lists the four aliases.

Tests: testServiceCanBeAutowired (the four aliases, and the two existing aliases of the Monolog handlers). With coverage (pcov): 459 tests, no risky test. PHPStan, PHP-CS-Fixer, Rector and Twig-CS-Fixer OK.

Requirements

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

Breaking changes

None: new aliases, the existing ids are unchanged.

🤖 Generated with Claude Code

njoubert-cleverage and others added 2 commits October 21, 2026 09:21
…eir class

Private aliases named after their class for ProcessExecutionManager,
ProcessConfigurationsManager, ProcessExecutionRepository and
ProcessScheduleRepository, as the Monolog handlers: they can be autowired.
Tests, documentation and CHANGELOG updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit 3e67bb2 into main Oct 21, 2026
26 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.

Autowire the managers and repositories: aliases named after their class

1 participant