runroom-packages / render-event-bundle
Add a render event before rendering templates
Package info
github.com/Runroom/RunroomRenderEventBundle
Type:symfony-bundle
pkg:composer/runroom-packages/render-event-bundle
Requires
- php: ^8.1
- symfony/config: ^6.4 || ^7.1
- symfony/dependency-injection: ^6.4 || ^7.1
- symfony/error-handler: ^6.4 || ^7.1
- symfony/event-dispatcher: ^6.4 || ^7.1
- symfony/event-dispatcher-contracts: ^2.1 || ^3.0
- symfony/http-foundation: ^6.4 || ^7.1
- symfony/http-kernel: ^6.4 || ^7.1
- symfony/translation: ^6.4 || ^7.1
- symfony/validator: ^6.4 || ^7.1
- symfony/yaml: ^6.4 || ^7.1
- twig/twig: ^3.14
Requires (Dev)
This package is auto-updated.
Last update: 2026-05-31 00:24:35 UTC
README
This bundle wraps the twig render to allow modifications of the parameters passed to it using the event dispatcher.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
composer require runroom-packages/render-event-bundle
Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles in config/bundles.php file of your project:
// config/bundles.php return [ // ... Runroom\RenderEventBundle\RunroomRenderEventBundle::class => ['all' => true], ];
Contribute
The sources of this package are contained in the Runroom monorepo. We welcome contributions for this package on runroom/runroom-packages.
License
This bundle is under the MIT license.