shopware-storefront

Installation
SKILL.md

Shopware 6 — Storefront

PHP conventions come from rules/, not from this skill. Twig attribute formatting follows rules/01: all attributes on one line. See the shopware skill for the map of Shopware skills.

Storefront — Custom Controller + Page

Full pattern: Controller + Page Loader + Page + PageLoadedEvent.

// src/Storefront/Controller/ExampleController.php
use Shopware\Core\PlatformRequest;
use Shopware\Storefront\Framework\Routing\StorefrontRouteScope;
use Shopware\Storefront\Controller\StorefrontController;
use Symfony\Component\Routing\Attribute\Route;

#[Route(defaults: [PlatformRequest::ATTRIBUTE_ROUTE_SCOPE => [StorefrontRouteScope::ID]])]
class ExampleController extends StorefrontController
{
    public function __construct(private readonly ExamplePageLoader $pageLoader) {}
Installs
1
GitHub Stars
4
First Seen
4 days ago
shopware-storefront — alpham8/agentic-webdev