Skip to content

#55 - Load the service definitions with a glob pattern instead of a Finder - #58

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

njoubert-cleverage merged 1 commit into
mainfrom
55

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

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

  • CleverAgeCacheProcessExtension::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 is no longer required: it was only used there.
  • Docblock: the @see link to the Symfony 2 cookbook points to the current page (as in process-bundle).
  • 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

…inder

- CleverAgeCacheProcessExtension::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 is no longer required (only used there).
- Docblock link to the Symfony 2 cookbook updated.
- 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 f386664 into main Oct 19, 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.

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

1 participant