Skip to content

feat: Adjust documentation in regards of new extension pattern for Store-API route classes - #2551

Merged
Michael Telgmann (mitelg) merged 3 commits into
mainfrom
feat/store-api-extension
Oct 30, 2026
Merged

Michael Telgmann (mitelg) merged 3 commits into
mainfrom
feat/store-api-extension

Conversation

@mitelg

@mitelg Michael Telgmann (mitelg) commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Adjust certain places of the docs build on the following ADR https://github.com/shopware/shopware/blob/trunk/adr/2026-09-24-replace-abstract-route-classes-with-extension-events.md
Also shopware/shopware#20978 was considered.

Checklist

  • I reviewed affected links, code samples, and cross-references, including PageRef references where relevant.
  • I added or updated redirects in .gitbook.yaml if pages were moved, renamed, or deleted.
  • I updated .wordlist.txt (and sorted it) if spellcheck flags new legitimate terms.
  • Any required dependent changes in downstream modules have already been merged and published.
  • This pull request is ready for review.

@shopware-dev-docs-connector

shopware-dev-docs-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Developer Docs healthcheck

Status: Completed with failure.
Repository: shopware/docs
Commit: 7e85b84
Preview: No Vercel preview URL was found in the workflow logs.
Workflow run: #5901

@mitelg
Michael Telgmann (mitelg) force-pushed the feat/store-api-extension branch 3 times, most recently from c248b88 to 8c9901c Compare October 29, 2026 10:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The examples have incompatible HTTP-method and constructor contracts, causing documented POST requests to return 405 and the rate-limiter example to throw a TypeError before reaching the limiter.

2 open issues
What changed in this PR

Updates the Shopware plugin documentation to prefer extension events for Store API routes, while retaining decoration guidance for older versions.

Changes:

  • Replaces abstract-route examples with extension classes, dispatcher calls, and event subscribers.
  • Aligns service, event-discovery, and rate-limiter guidance with the new route pattern.
  • Cleans up Markdown formatting and code-group syntax.
File Description
guides/​plugins/​plugins/​services/​adjusting-service.md Prefers extension events over service decoration where available
guides/​plugins/​plugins/​framework/​store-api/​override-existing-route.md Adds subscriber examples and retains legacy decoration guidance
guides/​plugins/​plugins/​framework/​store-api/​index.md Updates route extensibility principles
guides/​plugins/​plugins/​framework/​store-api/​add-store-api-route.md Demonstrates extension-based routes and updated dependency injection
guides/​plugins/​plugins/​framework/​rate-limiter/​add-rate-limiter-to-api-route.md Moves rate-limiter examples into extension-dispatched route bodies
guides/​plugins/​plugins/​framework/​event/​finding-events.md Distinguishes kernel route events from extension events
guides/​plugins/​plugins/​framework/​caching/​index.md Cleans up whitespace and code-group formatting
guides/​plugins/​plugins/​checkout/​documents/​legacy/​add-custom-document-type.md Corrects code-group formatting

Review effort: Balanced

@Isengo1989 Micha Hobert (Isengo1989) added the Undocumented Feature Feature which is not documented yet and is considered for documentation label Oct 29, 2026

@Isengo1989 Micha Hobert (Isengo1989) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the PR Michael Telgmann (@mitelg) 👍

@mitelg
Michael Telgmann (mitelg) merged commit 3130174 into main Oct 30, 2026
8 of 10 checks passed
@mitelg
Michael Telgmann (mitelg) deleted the feat/store-api-extension branch October 30, 2026 08:35
@bojanrajh Bojan Rajh (bojanrajh) mentioned this pull request Oct 30, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Undocumented Feature Feature which is not documented yet and is considered for documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants