Skip to content

InlineFragmentRenderer:: Call to undefined method Symfony\Component\HttpFoundation\Response::closeOutputBuffers() #11636

Closed
@davidallen

Description

@davidallen

When rendering a controller within a template using

\Symfony\Component\HttpKernel\Controller\ControllerReference

and the controller that is being included throws an exception then the InlineFragmentRenderer tries to clean up the output buffers (line 96) using Response::closeOutputBuffers($level, false);

The following error is thrown:
UndefinedMethodException: Attempted to call method "closeOutputBuffers" on class "Symfony\Component\HttpFoundation\Response" in /Applications/MAMP/htdocs/webapp/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.php line 96.

I only saw this error after upgrading to 2.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions