Repository navigation
[Task] Add getByIdentifier() to the group config resolver contract - #170
Merged
Merged
Conversation
pimcore/pimcore#19751 added the public static GroupConfig::getByIdentifier() to core 2026.x, so the contract test GroupConfigResolverTest fails on every leg that installs 2026.x-dev. Add it to GroupConfigResolverContract and the @internal GroupConfigResolverInterface. Not added to the public GroupConfigResolverContractInterface (BC), same as #166. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified for the resolver method additions, backward-compatibility handling, and corresponding upgrade-note documentation.
No open issues 🎉
What changed in this PR
Adds Pimcore 2026.4's GroupConfig::getByIdentifier() to the resolver contract and internal resolver interface while preserving backward compatibility for the public contract interface.
Changes:
- Added the typed forwarding method to
GroupConfigResolverContract. - Exposed the method through
GroupConfigResolverInterface. - Documented the addition and intentional public-interface omission in the 2026.4 upgrade notes.
| File | Description |
|---|---|
| src/Models/DataObject/ClassificationStore/GroupConfigResolverInterface.php | Exposes getByIdentifier() through the internal group configuration resolver interface. |
| src/Contract/Models/DataObject/ClassificationStore/GroupConfigResolverContract.php | Adds a typed delegation to Pimcore's GroupConfig::getByIdentifier() implementation. |
| doc/02_Upgrade_Notes/README.md | Documents the new resolver method and its intentional omission from the public contract interface. |
Review effort: Lite
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.



Changes in this pull request
Related: pimcore/pimcore#19751
pimcore/pimcore#19751 (merged into
2026.x, Pimcore 2026.4) adds the public staticPimcore\Model\DataObject\Classificationstore\GroupConfig::getByIdentifier(). The contract test requires every public static method ofGroupConfigin the resolver contract, soGroupConfigResolverTest::testStaticPublicNonInternalMethodsExistfails on2026.xin every CI leg that installspimcore/pimcore2026.x-dev(e.g. push run 45423368396).getByIdentifier(string $identifier, int $storeId = 1): ?GroupConfiginGroupConfigResolverContract, calling the core method.@internalGroupConfigResolverInterface, so the resolver service offers it.GroupConfigResolverContractInterface, on purpose (BC), same as [Improvement] Add useInheritedProperties() to the service resolver contracts #166. Tracked for 2027.1 together with the others in [Dev tooling] Fix PHPStan 2.3 findings that need a BC break (2027.1) platform-version#761.composer.jsonunchanged:2026.xalready requirespimcore/pimcore^2026.4(since [Improvement] Add useInheritedProperties() to the service resolver contracts #166), which resolves to2026.x-devuntil 2026.4.0 is released.Only
2026.xneeds this: core2026.3has nogetByIdentifier(), so the failures on the experimental2026.x-dev as 12.99.9legs of2026.3PRs (e.g. #169) are expected there.Additional info
Regression test: the existing contract test. Locally (PHP 8.4, highest dependencies, core
2026.x-dev@ 97af02bf9c):GroupConfigResolverTestfails with "Failed asserting that an array contains 'getByIdentifier'" before, full Unit suite (122 tests) OK and PHPStan clean after.🤖 Generated with Claude Code