Verified against Semitexa Ultimate 2026.11.04.1744

Ssr attributes

Every attribute declared by Ssr, with the signature the code has and a usage quoted from the codebase.

#[AsComponent]

Semitexa\Ssr\Attribute\AsComponent

Applies to: class

parameter type required
name string yes
template string no
layout string no
cacheable bool no
script string no
#[AsComponent(
    name: 'product-spotlight-card',
    template: '@shop/components/product-spotlight-card.html.twig',
    script: 'shop:js:product-spotlight-card',
)]
final class ProductSpotlightCardComponent

— vendor/semitexa/demo/resources/examples/Rendering/ComponentScripts/ScriptedComponent.example.php

#[AsComponentMetadataProvider]

Semitexa\Ssr\Attribute\AsComponentMetadataProvider

Applies to: class

parameter type required
priority int no
#[AsComponentMetadataProvider(priority: 50)]
final class CmprtMidProvider implements ComponentMetadataProviderInterface

— vendor/semitexa/ssr/tests/Unit/Component/ComponentMetadataProviderRegistryTest.php

#[AsDataProvider]

Semitexa\Ssr\Attribute\AsDataProvider

Applies to: class

parameter type required
slot string yes
handles array no

No usage found in this installation.

#[AsDeferred]

Semitexa\Ssr\Attribute\AsDeferred

Applies to: class

parameter type required
slot string yes
mode string no
priority int no
cacheTtl int no
skeletonTemplate string no

No usage found in this installation.

#[AsLayoutSlot]

Semitexa\Ssr\Attribute\AsLayoutSlot

Applies to: class. Repeatable.

parameter type required
handle string yes
slot string yes
template string yes
context array no
priority int no
deferred bool no
cacheTtl int no
dataProvider string no
skeletonTemplate string no
mode string no
refreshInterval int no

No usage found in this installation.

#[AsSitemapProvider]

Semitexa\Ssr\Application\Service\Seo\Sitemap\AsSitemapProvider

Applies to: class

parameter type required
priority int no
#[AsSitemapProvider(priority: 1000)]
final class RouteBasedSitemapProvider implements SitemapUrlProviderInterface

— vendor/semitexa/ssr/src/Application/Service/Seo/Sitemap/Provider/RouteBasedSitemapProvider.php

#[AsSlotHandler]

Semitexa\Ssr\Attribute\AsSlotHandler

Applies to: class. Repeatable.

parameter type required
slot string yes
priority int no
#[AsSlotHandler(slot: ProductAnalyticsSlot::class)]
final class ProductAnalyticsSlotHandler

— vendor/semitexa/demo/resources/examples/Rendering/Philosophy/DeferredSlot.example.php

#[AsSlotResource]

Semitexa\Ssr\Attribute\AsSlotResource

Applies to: class. Repeatable.

parameter type required
handle string yes
slot string yes
template string yes
priority int no
deferred bool no
cacheTtl int no
skeletonTemplate string no
mode string no
refreshInterval int no
clientModules array no
context array no
#[AsSlotResource(
    handle: 'dashboard',
    slot: 'dashboard.sidebar',
    template: '@project/dashboard/deferred-sidebar.html.twig',
    deferred: true,
)]
final class DeferredSidebarSlot

— vendor/semitexa/demo/resources/examples/Rendering/Deferred/DeferredSlot.example.php

#[AsTwigExtension]

Semitexa\Ssr\Attribute\AsTwigExtension

Applies to: class

Takes no arguments.

#[AsTwigExtension]
final class CodeHighlightTwigExtension

— vendor/semitexa/demo/src/Application/Service/Twig/CodeHighlightTwigExtension.php

#[NotInSitemap]

Semitexa\Ssr\Application\Service\Seo\Sitemap\NotInSitemap

Applies to: class

Takes no arguments.

#[NotInSitemap]
#[ExternalApi(version: 'v1', description: 'Demo product collection endpoint')]
#[ApiVersion(version: '1.0.0')]
#[ExposeAsGraphql(
    field: 'products',
    rootType: 'query',
    output: ProductListGraphqlView::class,
    description: 'Derived GraphQL field for paginated product collection reads from the Semitexa demo catalog.',
)]
final class ProductListPayload

— vendor/semitexa/demo/src/Application/Payload/Request/Api/ProductListPayload.php

#[PublishesScope]

Semitexa\Ssr\Attribute\PublishesScope

Applies to: class. Repeatable.

parameter type required
scopes string no
        #[PublishesScope('wallet_cron')]
        final class WalletCronJob implements ScheduledJobInterface

— vendor/semitexa/ssr/src/Attribute/PublishesScope.php

#[WithDataProvider]

Semitexa\Ssr\Attribute\WithDataProvider

Applies to: class

parameter type required
providerClass string yes
        #[WithDataProvider(BoardData::class)]
        final class BoardComponent implements UiIslandInterface

— vendor/semitexa/ssr/src/Attribute/WithTransport.php

#[WithTransport]

Semitexa\Ssr\Attribute\WithTransport

Applies to: class

parameter type required
mode Semitexa\Core\Attribute\TransportType no
deferred bool no
#[WithTransport(mode: TransportType::Sse, deferred: true)]
final class CraTestComponentWithSseDeferred

— vendor/semitexa/ssr/tests/Unit/Component/ComponentRegistryCompanionAttributeTest.php

Have a product idea?One free MVP every month