Skip to content

Support for stacking data upon redirect #26

Open

Description

@spotman

It would be nice to save debug info if response has Location header or it's status code is between 300 and 400. Debug bar can handle this via $debugBar->stackData() call.

More details here http://phpdebugbar.com/docs/ajax-and-stack.html#stacked-data

Activity

  1. snapshotpl commented on May 2, 2019

    @snapshotpl
    Member

    @spotman I don't know what exactly I can do with this

  2. spotman commented on May 6, 2019

    @spotman
    Author

    @spotman I don't know what exactly I can do with this

    Doing this way all DebugBar data will be saved in case of redirect (Post-Redirect-Get pattern, for example). But there is no direct access to DebugBar instance from middleware, only JavascriptRenderer is injected in the constructor.

  3. spotman commented on Feb 10, 2020

    @spotman
    Author

    @snapshotpl is there any progress on this issue? Will you accept a PR with a tiny non-BC-break fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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