sonata-project/twig-extensions
Provides a set of useful Twig extensions for Sonata projects, adding extra filters, functions, and helpers to enhance templates. Install via Composer and integrate with Twig to simplify common view tasks and formatting.
Symfony\Component\HttpKernel\DependencyInjection\Extension usage ([@VincentLanglet](https://github.com/VincentLanglet))SonataTwigBundle.it.xliff translation file ([@gremo](https://github.com/gremo))sonata-project/doctrine-extensions ^2 ([@VincentLanglet](https://github.com/VincentLanglet))symfony/translation requirement ([@VincentLanglet](https://github.com/VincentLanglet))See UPGRADE-2.0.md for all changes
Sonata\Twig\FlashMessage\FlashManager::$requestStack property ([@yann-eugone](https://github.com/yann-eugone))Sonata\Twig\FlashMessage\FlashManager::__construct() $session argument allowed types for Symfony\Component\HttpFoundation\Session\SessionInterface or Symfony\Component\HttpFoundation\RequestStack ([@yann-eugone](https://github.com/yann-eugone))Sonata\Twig\FlashMessage\FlashManager::getSession() method to fetch session from request stack ([@yann-eugone](https://github.com/yann-eugone))Sonata\Twig\FlashMessage\FlashManager service definition to inject 'request_stack' service instead of 'session' ([@yann-eugone](https://github.com/yann-eugone))sonata_urlsafeid filter ([@VincentLanglet](https://github.com/VincentLanglet))Symfony\Component\HttpFoundation\Session\SessionInterface as $session argument of Sonata\Twig\FlashMessage\FlashManager::__construct() ([@yann-eugone](https://github.com/yann-eugone))Sonata\Twig\FlashMessage\FlashManager::$session property ([@yann-eugone](https://github.com/yann-eugone))sonata-project/doctrine-extensions 1.9. ([@franmomu](https://github.com/franmomu))pl translations. ([@axzx](https://github.com/axzx))Sonata\Twig\FlashMessage\FlashManager::addFlash(string $type, string $message): void to add flash message directly by FlashManager (@wbloszyk)Sonata\Twig\FlashMessage\FlashManagerInterface to allow create custom FlashManager (@wbloszyk)sonata_flashmessage_class - get css class from flash message type in Twig (@wbloszyk)Sonata\Twig\Bridge\Symfony\SonataTwigSymfonyBundle. (@phansys)sonata_template_deprecate twig tag and sonata.twig.deprecated_template_extension service. (@franmomu)DeprecatedTemplateExtension, DeprecatedTemplateNode and DeprecatedTemplateTokenParser classes. (@franmomu)FlashManager as StatusClassRenderer (@wbloszyk)SonataTwigSymfonyBundle alias. (@phansys)Sonata\Twig\Status\StatusClassRendererInterface implementation in Sonata\Twig\FlashMessage\FlashManager (@wbloszyk)Sonata\Twig\Extension\StatusRuntime to working with Sonata\Twig\FlashMessage\FlashManager again, after add type hints (@wbloszyk)Sonata\Twig\FlashMessage\FlashManager::handlesObject()Sonata\Twig\FlashMessage\FlashManager::getStatusClass()Sonata\Twig\FlashMessage\StatusClassRendererInterface::handlesObject()Sonata\Twig\FlashMessage\StatusClassRendererInterface::getStatusClass()Sonata\Form\Type\BaseStatusType::configureOptions()twig/twig:^3.0flashmessage.css from CoreBundleform_type parameter in configurationFirst release since the split from sonata-project/core-bundle
How can I help you explore Laravel packages today?