Repository navigation
#52 - Give a code to the task, class name as service id - #53
Merged
Merged
Conversation
Propagate cleverage/process-bundle#91: the RequestTask is referenced in the process configurations by its code, rest_request (task: rest_request, with cleverage/process-bundle 5.4 or later, referencing it by service being deprecated there). - config/services/task.yaml: the class name is the service id (non-shared, same arguments and monolog.logger tag), tagged { name: cleverage.task, code: rest_request }; still public, with the container.private tag (direct access from the service container deprecated since 3.3, private in 4.0). - The former id cleverage_rest_process.task.request is a private deprecated alias of the class name (since 3.3, removed in 4.0). - Extension test: class name id, non-shared, code tag, public + container.private tag, former id deprecated alias. - Documentation: code on the reference page and in the template, examples switched from service: to task: <code>, index paragraph. - CHANGELOG. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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 #52: propagate cleverage/process-bundle#91 (PR cleverage/process-bundle#294) to this bridge. Deprecations introduced in 3.3, removal in 4.0.
Changes
rest_request(RequestTask),cleverage.tasktag, so that the task is referenced withtask: rest_request(process-bundle 5.4 or later, where referencing a task by itsserviceis deprecated).monolog.loggertag as before). It stays public, but fetching it directly from the service container is deprecated since 3.3 ({ name: container.private, package: cleverage/rest-process-bundle, version: '3.3' }):Accessing the "…" service directly from the container is deprecated, use dependency injection instead.; private in 4.0. The references of the container (process-bundle task locator) use the private service, without deprecation.cleverage_rest_process.task.request(released since 2.0, private): deprecated alias of the class name since 3.3 (The "cleverage_rest_process.task.request" service alias is deprecated, use the "rest_request" task code or the class name of the task instead. It will be removed in 4.0.), removed in 4.0. It stays private, as before.index.md, the RequestTask reference and both cookbooks);index.md(code, service id, deprecations).Requirement not changed yet:
cleverage/process-bundlestays^5.0, because 5.4 is not released (Composer could not resolve^5.4, the CI would fail). The change is harmless with process-bundle ≤ 5.3 (thecleverage.tasktag is ignored there;container.privateand deprecated aliases are Symfony features). To raise to^5.4before releasing 3.3 (thetask:key of the documentation requires it).Checks
CleverAgeRestProcessExtensionTest(class name as id, non-shared, arguments,monolog.loggertag, code, public +container.private, former id private deprecated alias with its message). Aftercomposer update: 33 tests OK, PHPStan, PHP-CS-Fixer, Rector OK,composer validate --strictOK.Requirements
Breaking changes
None: the former id and the public access are only deprecated (3.3), removed in 4.0.
🤖 Generated with Claude Code