Verified against Semitexa Ultimate 2026.09.19.1020

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
event string no
triggers array 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]
#[AsPublicPayload(
    path: 'env::SEMITEXA_OS_LOGIN_PATH::/os/login',
    methods: ['GET'],
    responseWith: OsLoginResource::class,
)]
final class OsLoginPayload

— vendor/semitexa/os/src/Application/Payload/Request/OsLoginPayload.php

#[PublishesScope]

Semitexa\Ssr\Attribute\PublishesScope

Applies to: class. Repeatable.

parameter type required
scopes string no

No usage found in this installation.

#[WithDataProvider]

Semitexa\Ssr\Attribute\WithDataProvider

Applies to: class

parameter type required
providerClass string yes
#[WithDataProvider(providerClass: CraTestValidProvider::class)]
final class CraTestComponentWithValidProvider

— vendor/semitexa/ssr/tests/Unit/Component/ComponentRegistryCompanionAttributeTest.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