Skip to content

Add documentation for Storefront Components#2182

Open
Philipp Schuch (Phil23) wants to merge 9 commits intomainfrom
storefront-components
Open

Add documentation for Storefront Components#2182
Philipp Schuch (Phil23) wants to merge 9 commits intomainfrom
storefront-components

Conversation

@Phil23
Copy link
Contributor

This adds general documentation for the new Storefront Components.

Please do not merge before release.


The component class must be registered as a service in your plugin's `services.xml` with `autoconfigure="true"`. This lets Symfony read the `#[AsTwigComponent]` attribute and wire up everything — including public property exposure — automatically. Without this registration the PHP class is unknown to the container and Twig silently falls back to an anonymous (template-only) component.

```XML

Choose a reason for hiding this comment

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

we recently changed all the examples of service registration to PHP. see #2160

please adjust this section accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Blocked Block PRs from merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants