Skip to content

[TwigBundle] Ability to disable built-in ExceptionListener #28587

Closed
@mateuszsip

Description

@mateuszsip

Hi.
I am developing an app that needs twig bundle to render some templates for infrastructure implementation (sending emails) and twig must be registered as templating engine (because 3rd party code depends on that), but I don't need Twig exception listener.
Current configuration doesn't allow me to disable that.
I would like to pass null in twig.exception_controller to disable that feature. Now I need to remove definition in compiler pass.
Of course I will prepare a PR.

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions