Skip to content

Replace legacy eZ service reference with Ibexa one - #9

Merged
hgiesenow merged 1 commit into
mainfrom
ibexa-legacy-cleanup
Oct 29, 2026
Merged

hgiesenow merged 1 commit into
mainfrom
ibexa-legacy-cleanup

Conversation

@hgiesenow

Copy link
Copy Markdown
Contributor

Removes the last legacy eZ reference so the bundle works on a plain Ibexa 4.6 (and 5.0) installation without ibexa/compatibility-layer.

Change

  • config/services.yaml: the field type's $serializer now references Ibexa\Contracts\Core\FieldType\ValueSerializerInterface instead of eZ\Publish\SPI\FieldType\ValueSerializerInterface. The old service id is only registered by the compatibility layer; the new one is registered natively by Ibexa 4.6 and 5.0.

All other code (PHP, templates, JS, CSS) already used Ibexa names.

Test

New ElbformatIconExtensionTest loads the bundle's service config and checks every class-named service reference. Ibexa 4.6 still ships PHP class_aliases for the old eZ\… names, so a plain interface_exists() check would pass; the test therefore also requires the service id to be the canonical class name. It fails with the old config and passes with the new one.

Verified locally: phpunit (12 tests) + phpstan on PHP 8.3/8.4/8.5 × Ibexa 4.6/5.0, code style clean.

🤖 Generated with Claude Code

The eZ\Publish\SPI\FieldType\ValueSerializerInterface service id is only
registered by ibexa/compatibility-layer. Ibexa 4.6 still ships a class_alias
for the old name, so a plain class_exists() check does not catch it; the new
test therefore requires service ids to be canonical class names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hgiesenow
hgiesenow merged commit c0055f5 into main Oct 29, 2026
16 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.

1 participant