ustal/stream-hub-symfony-bridge

Twig bridge for Stream Hub slot rendering

Maintainers

Package info

github.com/ustal/stream-hub-symfony-bridge

pkg:composer/ustal/stream-hub-symfony-bridge

Statistics

Installs: 14

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-04-07 23:37 UTC

This package is auto-updated.

Last update: 2026-04-11 19:47:18 UTC


README

CI

Twig bridge package for the Stream Hub ecosystem.

Current Scope

The package currently provides two bridge primitives:

  • the Twig function render_slot(...)
  • TwigViewRenderer, which implements ViewRendererInterface from stream-hub-core

render_slot(...) delegates slot rendering to SlotRendererInterface from stream-hub-core and marks the returned HTML as safe for Twig output.

Example:

{{ render_slot(slot, runtime, context) }}

TwigViewRenderer is the Twig-backed view engine that widgets use through the generic ViewRendererInterface.

This package currently focuses on Twig-level rendering helpers and template rendering primitives. Symfony bundle wiring and service registration belong in stream-hub-symfony-bundle.

Development

Install dependencies:

make install

Run tests:

make test

Run deptrac:

make deptrac