Skip to content

fix: Shopware 6.8 deprecations for services.xml and EntitySearchResult::first() - #150

Merged
shyim merged 1 commit into
mainfrom
cursor/fix-deprecations-bd40
Sep 9, 2026
Merged

shyim merged 1 commit into
mainfrom
cursor/fix-deprecations-bd40

Conversation

@shyim

@shyim shyim commented Sep 9, 2026

Copy link
Copy Markdown
Member

Fixes Shopware extension verifier findings for 6.8 compatibility.

Changes

  • Converted src/Resources/config/services.xml to services.yaml with shopware-cli extension fix --only symfony-xml. Autowire/autoconfigure and the Frosh\MailArchive\ prototype are unchanged.
  • Replaced deprecated EntitySearchResult::first() with getEntities()->first() in:
    • MailArchiveController (resend, download, attachment)
    • MailSender (source mail lookup)

Shopware already loads Resources/config/services.* via YAML as well as XML/PHP, so this keeps the same DI setup on 6.6 and 6.7.

Open in Web Open in Cursor 

…Result::first()

Use getEntities()->first() for Shopware 6.8 DAL compatibility and convert
plugin service definitions with shopware-cli extension fix.

Co-authored-by: Soner <github@shyim.de>
@shyim
shyim marked this pull request as ready for review September 9, 2026 06:59
@shyim
shyim merged commit 9e4f143 into main Sep 9, 2026
3 checks passed
@shyim
shyim deleted the cursor/fix-deprecations-bd40 branch September 9, 2026 07:00
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.

2 participants