Repository navigation
#277 - Use AbstractBundle and PHP service definitions - #516
Merged
Merged
Conversation
CleverAgeProcessBundle extends AbstractBundle: the configuration tree (configure()) and the loading of the services (loadExtension()) move from the internal Configuration and CleverAgeProcessExtension classes, removed, to the bundle. The service definitions are written in PHP (config/services/*.php, one file per former YAML file), analysed by PHPStan, Rector and PHP-CS-Fixer. Same configuration tree (root cleverage_process), same service ids and definitions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #277.
CleverAgeProcessBundleextendsAbstractBundle:configure(): the configuration tree, moved from the internalConfigurationclass (removed);loadExtension(): the loading of the services, the autoconfiguration, the deprecation checks, the arguments of the process configuration registry and the generic transformers, moved from the internalCleverAgeProcessExtensionclass (removed);build(): compiler passes, unchanged.Details:
cleverage_process($extensionAlias, AbstractBundle would guessclever_age_process);config/services/*.php), so that the_defaultsoftask.php/transformer.phpstay limited to their file;config/is analysed by PHPStan, Rector and PHP-CS-Fixer;getPath()is kept, so that a class extending the bundle (deprecated,@final since 5.4) still loads them;checkErrorStrategies(),checkTaskReferences(), now private,service/errorsnodes, public tasks and transformers): their removal is owned by v6.0: remove the deprecated code #292, whose paths are to be updated after this merge;ExtensionLoaderhelper (the extension of anAbstractBundlerequireskernel.environment/kernel.build_dirwith Symfony 7.4),TestKernel::getTaskCodes()and the "every service definition file is loaded" test read the PHP files.Equivalence: the container loaded by the extension (
YamlDumperdump, plus the autoconfiguration) and the configuration reference (YamlReferenceDumper) are identical before and after, with Symfony 7.4 and 8.2 (onlykernel.project_dir, the directory of the dump script, differs).Requirements
Breaking changes
None for applications: same configuration tree, same service ids and definitions. The removed
CleverAgeProcessExtensionandConfigurationclasses were@internal.🤖 Generated with Claude Code