Skip to content

#179 - Load the service definitions with a glob pattern instead of a Finder - #182

Merged
njoubert-cleverage merged 1 commit into
mainfrom
179
Oct 19, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
179

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #179. Same change as cleverage/process-bundle#271.

  • CleverAgeUiProcessExtension::findServices() imports the service definition files with a glob pattern ($loader->import('*.yaml', 'glob')) instead of a Finder and one load() call per file. Same signature (protected), same files (config/services has no sub-directory).
  • symfony/finder stays required: PurgeLogsCommand uses it.
  • New test: every service (and resource) of config/services/*.yaml is registered by the extension.

Checked in the container (composer update, PHP 8.5): PHPUnit with pcov, PHPStan, PHP-CS-Fixer and Rector OK.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None: same services, loaded from the same files.

🤖 Generated with Claude Code

…Finder

- CleverAgeUiProcessExtension::findServices() imports the service definition
  files with a glob pattern ($loader->import('*.yaml', 'glob')) instead of a
  Finder and one load() call per file, as cleverage/process-bundle#271. Same
  signature, same files.
- symfony/finder stays required: PurgeLogsCommand uses it.
- Test that every service of config/services/*.yaml is registered.

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

Load the service definitions with a glob pattern instead of a Finder

1 participant