Repository navigation
[v6] #292 - Remove the fallbacks of the task registry on the service container - #517
Merged
Merged
Conversation
…iner Lot 1 of #292 (#275, deprecated since 5.4): - ProcessManager: the $container argument is removed, TaskRegistryInterface $taskRegistry is required, before $stopCheckers; ProcessHelpCommand only accepts a TaskRegistryInterface; - TaskRegistry only fetches the tasks from its service locator: a task of a process configuration unknown when the container is compiled is not found; - the service key of the task configurations is removed (task: <code> only), the internal key written by the TaskLocatorCompilerPass is kept; - the tasks and transformers of the bundle, and the tasks autoconfigured with TaskInterface, are private; PublicTaskDeprecationCompilerPass is removed. 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
Part of #292 (lot 1: "Task registry fallbacks", #275, deprecated since 5.4). The other items of #292 follow in later pull requests.
ProcessManager: the$containerargument (and protected property) is removed;TaskRegistryInterface $taskRegistryis required and moves before the optional arguments:(ProcessLogger, TaskLogger, ProcessConfigurationRegistry, ContextualOptionResolver, EventDispatcherInterface, TaskRegistryInterface $taskRegistry, iterable $stopCheckers = [], ?LockFactory $lockFactory = null);ProcessHelpCommandonly accepts aTaskRegistryInterface(the deprecated$containerproperty is removed);TaskRegistryonly takes its service locator: a task of a process configuration unknown when the container is compiled (e.g. added at runtime) fails withUnable to resolve service reference for Task '<task>', it is no longer fetched from the service container;servicekey of the task configurations is removed from the configuration tree (Unrecognized option "service"),task: <code>is required. The internalservicekey written byTaskLocatorCompilerPass(andTaskConfiguration::getServiceReference(), thetask_servicelog field) is kept;public()/container.privatein thedefaults()) and the tasks autoconfigured withTaskInterface(no moresetPublic(true)) are private;PublicTaskDeprecationCompilerPassis removed;Upgrade notes:
UPGRADE.md,## v6.0, "Tasks and service container".Requirements
Breaking changes
Major (v6.0):
ProcessManager,TaskRegistryandProcessHelpCommandconstructors;servicetask configuration key removed; tasks and transformers private ($container->get()on them fails).🤖 Generated with Claude Code