- This package is a thin adapter over Symfony TwigBundle; read
CONTRIBUTING.mdbefore adding behavior. src/TwigBundle.phpregisters SymPress autoconfiguration and the global compiler pass.src/DependencyInjection/TwigExtension.phpdelegates to Symfony and supplies kernel parameters.Resources/config/services.yamlwires globals andTemplateRendererInterface.
- Fast behavior check:
composer tests. - Full required check:
composer qa. - Add an integration-style test only when changing template discovery, service wiring, or rendering behavior.
- Delegate standard Twig behavior to
symfony/twig-bundle; do not copy upstream configuration locally. - Keep Symfony TwigBundle service definitions intact.
- Preserve
AsTwigGlobalautoconfiguration and service-backed global resolution. TwigResponseTraitmust fail clearly when no renderer is available and return the renderer response unchanged otherwise.
- This package depends on
sympress/framework-bundleandsympress/kernel;extra.kernelexposesTwigBundle. - A change is done when the focused adapter test and
composer qapass and upstream delegation remains explicit.